Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #6210

Re: Getting extra memory

From Bob Latham <bob@sick-of-spam.invalid>
Subject Re: Getting extra memory
Newsgroups comp.sys.acorn.programmer
Message-ID <58ca3e1574bob@sick-of-spam.invalid> (permalink)
References <58ca210e71bob@sick-of-spam.invalid> <58ca23d0f5News03@avisoft.f9.co.uk> <58ca26a060bob@sick-of-spam.invalid> <58ca3a4a89News03@avisoft.f9.co.uk>
Organization None
Date 2020-11-04 18:04 +0000

Show all headers | View raw


In article <58ca3a4a89News03@avisoft.f9.co.uk>,
   Martin <News03@avisoft.f9.co.uk> wrote:
> In article <58ca26a060bob@sick-of-spam.invalid>,
>    Bob Latham <bob@sick-of-spam.invalid> wrote:
> > In article <58ca23d0f5News03@avisoft.f9.co.uk>,
> >    Martin <News03@avisoft.f9.co.uk> wrote:
> > > In article <58ca210e71bob@sick-of-spam.invalid>,
> > >    Bob Latham <bob@sick-of-spam.invalid> wrote:

> > > Not sure what, if or how you have set workspace.
> > It starts out as just the "next" slot 640K.

> So how is the expression 'workspace' set to &8000+next ?

A perfectly reasonable question when eventually I understood it. For
some reason it didn't dawn at first.

There is a label in the assembler right at the end.
.workspace

It should then sit right above the assembled code.

So you'll now want to know O% and P% I presume?

P%=&40000:O%=&40000



> > > I am not sure why you are resorting to assembler, when you could
> > > do it in BASIC quite easily. 

> > 1. For the speed.

> The time will be largely spent in OS_File for load and save, which
> is the same in Basic & assembler.

Again you're probably right I just like assembler right from the
65C02 days on the BBC.

I recall back in the day, I designed my own crude eprom programmer
using the user port and it was as slow as hell until I coded it
assembler. It managed to read an 8k rom so quickly I didn't think it
was working for ages.

> > 2. This is for pleasure, I like assembler. Always my first choice
> > unless I need chunky maths then I'm forced into Basic. 

> Aaah!  It was not clear you are a masochist :-))

:-)

But you could say that about almost anything people do for pleasure I
suppose. Some folk like lying on their back under some old car.

> [snip simple BASIC]

> > Thanks for that. I can see that may well be the sensible way but I
> > do want to understand why my assembler code errors.

> Have you looked at the output from the *Showregs command?

I hadn't because my code works completely, it just gives an error.
Just tried it, to be honest it doesn't tell me anything. 

> And checked what code the abort is in (eg with *Where)

Had forgotten about *where. Mine says Basic too.

> It in BASICVFP in this 5.28 ROM, but yours is probably different.

It's the same.

See I'm not sure I can/should do what I'm doing with this memory
changing. Is it OK to grab some more memory in this way in a non
multi tasking bit of code running in a Basic slot? Is suspect not but
don't know why.


Thanks.

Cheers,

Bob.

-- 
Bob Latham
Stourbridge, West Midlands

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Getting extra memory Bob Latham <bob@sick-of-spam.invalid> - 2020-11-04 12:47 +0000
  Re: Getting extra memory Martin <News03@avisoft.f9.co.uk> - 2020-11-04 13:17 +0000
    Re: Getting extra memory Bob Latham <bob@sick-of-spam.invalid> - 2020-11-04 13:48 +0000
      Re: Getting extra memory Martin <News03@avisoft.f9.co.uk> - 2020-11-04 17:23 +0000
        Re: Getting extra memory Bob Latham <bob@sick-of-spam.invalid> - 2020-11-04 18:04 +0000
          Re: Getting extra memory Martin <News03@avisoft.f9.co.uk> - 2020-11-04 18:44 +0000
            Re: Getting extra memory Bob Latham <bob@sick-of-spam.invalid> - 2020-11-04 22:03 +0000
      Re: Getting extra memory druck <news@druck.org.uk> - 2020-11-04 18:06 +0000
        Re: Getting extra memory Bob Latham <bob@sick-of-spam.invalid> - 2020-11-04 18:33 +0000
  Re: Getting extra memory Steve Drain <steve@kappa.me.uk> - 2020-11-04 17:38 +0000
    Re: Getting extra memory Bob Latham <bob@sick-of-spam.invalid> - 2020-11-04 18:11 +0000
      Re: Getting extra memory Bob Latham <bob@sick-of-spam.invalid> - 2020-11-04 18:32 +0000

csiph-web