Difference between revisions of "OSBYTE &70"

From BeebWiki
Jump to: navigation, search
m (Added return value and variable location.)
m (Corrected OSBYTE variable location.)
Line 16: Line 16:
 
of memory while the other is being displayed.
 
of memory while the other is being displayed.
  
The setting is stored in the [[OSBYTE &F0]] variable.
+
The setting is stored in the [[OSBYTE &FA]] variable.
  
 
==See also==
 
==See also==

Revision as of 02:19, 4 April 2015

OSBYTE &70 (112) - Select Main/Shadow for VDU access

   On entry:
       X=0 Use whatever memory the current screen MODE uses
       X=1 Use main memory
       X=2 Use shadow memory
   On exit:
       X=preserved
   RISC OS:
   The value of X can be greater than 2 as well, and instructs the VDU
   drivers to use the bank at screenbase+(X*modesize)

This call specifies which bank of memory the Master VDU drivers access. Using this and OSBYTE &71 a program can use the VDU to write to one bank of memory while the other is being displayed.

The setting is stored in the OSBYTE &FA variable.

See also

Jgharston (talk) 01:11, 4 April 2015 (UTC)