CP/M RMAC ASSEM 1.1	#001	SYSTEM CONTROL BLOCK DEFINITION FOR CP/M3 BIOS

                	title 'System Control Block Definition for CP/M3 BIOS'
                
                	public @civec, @covec, @aivec, @aovec, @lovec, @bnkbf
                	public @crdma, @crdsk, @vinfo, @resel, @fx, @usrcd 
                        public @mltio, @ermde, @erdsk, @media, @bflgs
                	public @date, @hour, @min, @sec, ?erjmp, @mxtpa
                
                
 FE00 =         scb$base equ    0FE00H          ; Base of the SCB
                
 FE22 =         @CIVEC  equ     scb$base+22h    ; Console Input Redirection 
                                                ; Vector (word, r/w)
 FE24 =         @COVEC  equ     scb$base+24h    ; Console Output Redirection 
                                                ; Vector (word, r/w)
 FE26 =         @AIVEC  equ     scb$base+26h    ; Auxiliary Input Redirection 
                                                ; Vector (word, r/w)
 FE28 =         @AOVEC  equ     scb$base+28h    ; Auxiliary Output Redirection 
                                                ; Vector (word, r/w)
 FE2A =         @LOVEC  equ     scb$base+2Ah    ; List Output Redirection 
                                                ; Vector (word, r/w)
 FE35 =         @BNKBF  equ     scb$base+35h    ; Address of 128 Byte Buffer 
                                                ; for Banked BIOS (word, r/o)
 FE3C =         @CRDMA  equ     scb$base+3Ch    ; Current DMA Address 
                                                ; (word, r/o)
 FE3E =         @CRDSK  equ     scb$base+3Eh    ; Current Disk (byte, r/o)
 FE3F =         @VINFO  equ     scb$base+3Fh    ; BDOS Variable "INFO" 
                                                ; (word, r/o)
 FE41 =         @RESEL  equ     scb$base+41h    ; FCB Flag (byte, r/o)
 FE43 =         @FX     equ     scb$base+43h    ; BDOS Function for Error 
                                                ; Messages (byte, r/o)
 FE44 =         @USRCD  equ     scb$base+44h    ; Current User Code (byte, r/o)
 FE4A =         @MLTIO	equ	scb$base+4Ah	; Current Multi-Sector Count
                				; (byte,r/w)
 FE4B =         @ERMDE  equ     scb$base+4Bh    ; BDOS Error Mode (byte, r/o)
 FE51 =         @ERDSK	equ	scb$base+51h	; BDOS Error Disk (byte,r/o)
 FE54 =         @MEDIA	equ	scb$base+54h	; Set by BIOS to indicate
                				; open door (byte,r/w)
 FE57 =         @BFLGS  equ     scb$base+57h    ; BDOS Message Size Flag (byte,r/o)  
 FE58 =         @DATE   equ     scb$base+58h    ; Date in Days Since 1 Jan 78 
                                                ; (word, r/w)
 FE5A =         @HOUR   equ     scb$base+5Ah    ; Hour in BCD (byte, r/w)
 FE5B =         @MIN    equ     scb$base+5Bh    ; Minute in BCD (byte, r/w)
 FE5C =         @SEC    equ     scb$base+5Ch    ; Second in BCD (byte, r/w)
 FE5F =         ?ERJMP  equ     scb$base+5Fh    ; BDOS Error Message Jump
                                                ; (word, r/w)
 FE62 =         @MXTPA  equ     scb$base+62h    ; Top of User TPA 
                                                ; (address at 6,7)(word, r/o)
 0000           	end
