OSBYTE &6F

From BeebWiki
Revision as of 23:38, 14 February 2016 by Jgharston (talk | contribs) (Accidently overwitten with OSBYTE 6E.)
Jump to: navigation, search

OSBYTE &6F (111) - Read/Write Aries/Watford Shadow RAM Switch

   On entry:
   X b7=0 no stack operation
     b7=1 pop state from stack (reading), push state on stack (writing)
     b6=0 write switch state
     b6=1 read switch state
     b0=0 select video RAM
     b0=1 select program RAM
   On exit, X contains the previous switch state:
     b0=0 video RAM
     b0=1 program RAM
   
   This gives the following entry and return values:
   X=&00 - Select video RAM
     &01 - Select program RAM
     &40 - Read current RAM state
     &41 - Read current RAM state
     &80 - Save current RAM state and select video RAM
     &81 - Save current RAM state and select program RAM
     &C0 - Pop and select stacked RAM state
     &C1 - Pop and select stacked RAM state

This call is implemented by the Watford and Aries shadow memory systems for the BBC B computer, and compatible systems. The B+, Integra-B and Master series use different shadow selection calls.

See Also

Jgharston (talk) 20:28, 3 April 2015 (UTC)