Difference between revisions of "OSBYTE &6C"

From BeebWiki
Jump to: navigation, search
(update)
(Updated exit state.)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:OSBYTE]]
 
[[Category:OSBYTE]]
OSBYTE &6C (108) - Main/Shadow RAM access
+
{{PageTitle|OSBYTE &6C (108): Main/Shadow RAM access}}
 +
  On entry:
 +
    X=0  Master:    Main memory appears from &3000 to &7FFF
 +
        Integra-B: Non-display memory appears from &3000 to &7FFF
 +
    X<>0 Master:    Shadow memory appears from &3000 to &7FFF
 +
        Integra-B: Display memory appears from &3000 to &7FFF
 +
  On exit:
 +
    X    master:    preserved
 +
        Integra-B  returns previous state, &00 or &01
  
    Y=0 X=0 Main memory appears from &3000 to &7FFF
+
This has immediate effect and allows the user to access the shadow display
        X=1 Shadow memory appears from &3000 to &7FFF
+
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]].
  
This has immediate effect and allows the user to access the Master's 20K
+
Shadow RAM on the BBC B with the Integra-B system is also paged in with
shadow RAM, for instance, to load or save it or manipulate it directly. The
+
OSBYTE &6C. Note that the Integra-B functions subtly differently to the
memory that is accessed by the VDU drives and displayed can set with
+
Master. If a shadow screen mode is being displayed the Integra-B functions
[[OSBYTE &70]] and [[OSBYTE &71]].
+
the same as the Master. If a non-shadow screen mode is being displayed, the
 +
action is the opposite to the Master.
  
 
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 14: Line 25:
 
[[OSRDSC]].
 
[[OSRDSC]].
  
==See Also==
+
The Aries and Watford systems use [[OSBYTE &6F]].
* [[OSBYTE &6C]] - Select Master shadow memory
+
 
* [[OSBYTE &6F]] - Select BBC B shadow memory
+
==See also==
 +
* [[OSBYTE &49]] - Check for Integra-B shadow memory
 +
* [[OSBYTE &6C]] - Select Master/Integra-B shadow memory
 +
* [[OSBYTE &6F]] - Select Aries/Watford shadow memory
 
* [[OSBYTE &70]] - Select memory for Master VDU access
 
* [[OSBYTE &70]] - Select memory for Master VDU access
 
* [[OSBYTE &71]] - Select memory for Master video display
 
* [[OSBYTE &71]] - Select memory for Master video display
Line 25: Line 39:
 
* http://mdfs.net/Docs/Comp/BBC/Osbyte00
 
* http://mdfs.net/Docs/Comp/BBC/Osbyte00
  
[[User:WikiSysop|WikiSysop]] ([[User talk:WikiSysop|talk]]) 13:30, 8 March 2015 (UTC)
+
----
 +
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 01:12, 14 January 2016 (UTC)

Latest revision as of 17:05, 30 November 2022

OSBYTE &6C (108): Main/Shadow RAM access
 On entry:
   X=0  Master:    Main memory appears from &3000 to &7FFF
        Integra-B: Non-display memory appears from &3000 to &7FFF
   X<>0 Master:    Shadow memory appears from &3000 to &7FFF
        Integra-B: Display memory appears from &3000 to &7FFF
 On exit:
   X    master:    preserved
        Integra-B  returns previous state, &00 or &01

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.

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.

The Aries and Watford systems use OSBYTE &6F.

See also


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