Various OSBYTE discussions

bbc/electron apps, languages, utils, educational progs, demos + more
Post Reply
SparkyNZ
Posts: 68
Joined: Tue Feb 06, 2024 5:05 am
Contact:

Various OSBYTE discussions

Post by SparkyNZ »

Not sure if this is the right section of the forum for asking OS/system related questions.

I'm having a look at OSBYTE &83.. I see I get $1900 back as the address for the "top of the OS RAM address (OSHWM)". This confuses me when I look at the memory map on page 500 of the User Guide.

Is there a better memory map available somewhere that illustrates where this fits in?
james
Posts: 348
Joined: Tue Aug 15, 2023 8:41 pm
Location: NE Hampshire
Contact:

Re: Various OSBYTE discussions

Post by james »

The memory map on p500 is correct - for an UNEXPANDED BBC Micro

But as you add additional Paged ROMS, they may request memory from the MOS, in which case OSHWM moves upwards to accomodate them.

Acorn's DFS (Disc Filing System) requests 11 pages of RAM for its own use (11 x 256 bytes = 2.75 Kb), so OSWHM rises from &E00 to &1900 to accommodate this request. DFS is free* to use the memory between &E00 and &18FF for its own purposes. *actually, there's public and private RAM allocated, so it's a bit more complex, but you get the idea.

By default, BASIC will set PAGE to OSHWM (OS High Water Mark - see p431). But you can move PAGE up and down to you heart's content. Remember, BASIC and the MOS are independent of each other!

Now, for added confusion, on a Master that memory used by Paged ROMs is hidden away elsewhere by the MOS, so OSHWM will generally stay around &E00.

And if you're running on a 6502 second/co processor, I believe OSHWM is at &800.

OSHWM is a moveable feast!
SparkyNZ
Posts: 68
Joined: Tue Feb 06, 2024 5:05 am
Contact:

Re: Various OSBYTE discussions

Post by SparkyNZ »

james wrote: Sat Feb 17, 2024 10:50 am By default, BASIC will set PAGE to OSHWM (OS High Water Mark - see p431). But you can move PAGE up and down to you heart's content. Remember, BASIC and the MOS are independent of each other!
Ah! I just noticed PAGE on the memory map on page 500. I was looking for OSHWM but I guess they are more or less one in the same thing initially.
User avatar
sweh
Posts: 3325
Joined: Sat Mar 10, 2012 12:05 pm
Location: 07410 New Jersey
Contact:

Re: Various OSBYTE discussions

Post by sweh »

OSHWM is the OS term and so is what OSBYTE calls and the like will refer to. PAGE is a BASIC term (remember, on the Beeb, BASIC and the OS are two different things; BASIC calls the OS to do stuff). BASIC will set PAGE to OSHWM on startup.
Rgds
Stephen
SparkyNZ
Posts: 68
Joined: Tue Feb 06, 2024 5:05 am
Contact:

Re: Various OSBYTE discussions

Post by SparkyNZ »

sweh wrote: Sat Feb 17, 2024 7:49 pm OSHWM is the OS term and so is what OSBYTE calls and the like will refer to. PAGE is a BASIC term (remember, on the Beeb, BASIC and the OS are two different things; BASIC calls the OS to do stuff). BASIC will set PAGE to OSHWM on startup.
I know :-) I had the feeling I'd get slapped for saying they are the same thing haha. I understand the difference context.

BTW, whereabouts are you from? - as soon as I see "Aye", I have to ask.
User avatar
sweh
Posts: 3325
Joined: Sat Mar 10, 2012 12:05 pm
Location: 07410 New Jersey
Contact:

Re: Various OSBYTE discussions

Post by sweh »

SparkyNZ wrote: Sat Feb 17, 2024 8:11 pm BTW, whereabouts are you from? - as soon as I see "Aye", I have to ask.
*blink* I'm not sure I've used "Aye"; maybe you mixed me and James :-)
Rgds
Stephen
SparkyNZ
Posts: 68
Joined: Tue Feb 06, 2024 5:05 am
Contact:

Re: Various OSBYTE discussions

Post by SparkyNZ »

sweh wrote: Sat Feb 17, 2024 8:14 pm *blink* I'm not sure I've used "Aye"; maybe you mixed me and James :-)
Yeah would have been james, sorry. I'm originally from the north-east of the UK so I tend to pick up on these things.
james
Posts: 348
Joined: Tue Aug 15, 2023 8:41 pm
Location: NE Hampshire
Contact:

Re: Various OSBYTE discussions

Post by james »

It’s an affectation, I’m originally from The Midlands.
SparkyNZ
Posts: 68
Joined: Tue Feb 06, 2024 5:05 am
Contact:

Re: Various OSBYTE discussions

Post by SparkyNZ »

james wrote: Sat Feb 17, 2024 8:26 pm It’s an affectation, I’m originally from The Midlands.
We'd call that "South" when I was a kid.. There and again.. anything south of Darlington was "South" Haha. I'm from close to Geordieland. I don't hear many people saying "Aye" these days apart from the old man.
Post Reply

Return to “8-bit acorn software: other”