Difference between revisions of "OSBYTE &6C"

From BeebWiki
Jump to: navigation, search
m (.)
(Added Integra-B information.)
Line 2: Line 2:
 
OSBYTE &6C (108) - Main/Shadow RAM access
 
OSBYTE &6C (108) - Main/Shadow RAM access
  
    On entry:
+
  On entry, Master:
        X=0  Main memory appears from &3000 to &7FFF
+
    X=0  Main memory appears from &3000 to &7FFF
        X<>0 Shadow memory appears from &3000 to &7FFF
+
    X<>0 Shadow memory appears from &3000 to &7FFF
     On exit:
+
  On entry, Integra-B on BBC B:
        X    preserved
+
     X=0  Non-display memory appears from &3000 to &7FFF
 +
    X<>0 Display memory appears from &3000 to &7FFF
 +
  On exit:
 +
    X    preserved
  
This has immediate effect and allows the user to access the Master shadow
+
This has immediate effect and allows the user to access the shadow display
RAM, for instance, to load or save it or manipulate it directly. The memory
+
memory, for instance, to load or save it or manipulate it directly. The
that is accessed by the Master VDU drivers and displayed can set with
+
memory that is accessed by the Master VDU drivers and displayed can set with
 
[[OSBYTE &70]] and [[OSBYTE &71]].
 
[[OSBYTE &70]] and [[OSBYTE &71]].
  
 
Shadow RAM on the BBC B with the Integra-B system is also paged in with
 
Shadow RAM on the BBC B with the Integra-B system is also paged in with
OSBYTE &6C. The Aries and Watford systems use [[OSBYTE &6F]].
+
OSBYTE &6C. Note that the Integra-B functions subtly differently to the
 +
Master. If a shadow screen mode is being displayed the Integra-B functions
 +
the same as the Master. If a non-shadow screen mode is being displayed, the
 +
action is the opposite to the Master.
 +
 
 +
The Aries and Watford systems use [[OSBYTE &6F]].
  
 
On the BBC B+ the displayed memory is always the bank selected with MODE or
 
On the BBC B+ the displayed memory is always the bank selected with MODE or
Line 32: Line 40:
 
* http://mdfs.net/Docs/Comp/BBC/Osbyte00
 
* http://mdfs.net/Docs/Comp/BBC/Osbyte00
  
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 01:10, 4 April 2015 (UTC)
+
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 01:12, 14 January 2016 (UTC)

Revision as of 03:12, 14 January 2016

OSBYTE &6C (108) - Main/Shadow RAM access

 On entry, Master:
   X=0  Main memory appears from &3000 to &7FFF
   X<>0 Shadow memory appears from &3000 to &7FFF
 On entry, Integra-B on BBC B:
   X=0  Non-display memory appears from &3000 to &7FFF
   X<>0 Display memory appears from &3000 to &7FFF
 On exit:
   X    preserved

This has immediate effect and allows the user to access the shadow display memory, for instance, to load or save it or manipulate it directly. The memory that is accessed by the Master VDU drivers and displayed can set with OSBYTE &70 and OSBYTE &71.

Shadow RAM on the BBC B with the Integra-B system is also paged in with OSBYTE &6C. Note that the Integra-B functions subtly differently to the Master. If a shadow screen mode is being displayed the Integra-B functions the same as the Master. If a non-shadow screen mode is being displayed, the action is the opposite to the Master.

The Aries and Watford systems use OSBYTE &6F.

On the BBC B+ the displayed memory is always the bank selected with MODE or OSBYTE &72, and the user can only access the shadow memory by calling OSRDSC.

See also

Jgharston (talk) 01:12, 14 January 2016 (UTC)