Pushed Static Hardware Variables to "variables.s"

This commit is contained in:
0xMAC8205 2023-10-29 13:14:06 +01:00
parent 894dc18288
commit 49d9e0a38e
2 changed files with 21 additions and 20 deletions

20
main.s
View File

@ -58,24 +58,4 @@ irq_jump jmp (irq_vector)
.addr reset .addr reset
.addr irq_jump .addr irq_jump
; hardware registers
vidx = $be00
vidy = $be01
vidm = $be02
vidd = $be03
porta = $bf80
portb = $bf81
ddrb = $bf82
ddra = $bf83
t1cl = $bf84
t1ch = $bf85
acr = $bf8b
ifr = $bf8d
ier = $bf8e
keyboard_port = $bd00
system_register = $bc00
.end .end

View File

@ -44,3 +44,24 @@ color = $2fe ; 8 bit Fore & Background Co
typelength = $2ff ; 8 bit Length of typebuffer typelength = $2ff ; 8 bit Length of typebuffer
typebuffer = $300 ; 256 byte 256 bit, All Purpose Char Buffer typebuffer = $300 ; 256 byte 256 bit, All Purpose Char Buffer
; Hardware Registers
vidx = $be00 ; 8 bit Video X Register
vidy = $be01 ; 8 bit Video Y Register
vidm = $be02 ; 8 bit Video Modifier Register
vidd = $be03 ; 8 bit Video Data Register
porta = $bf80 ; 8 bit VIA Registers
portb = $bf81 ; 8 bit ...
ddrb = $bf82 ; 8 bit
ddra = $bf83 ; 8 bit
t1cl = $bf84 ; 8 bit
t1ch = $bf85 ; 8 bit
acr = $bf8b ; 8 bit
ifr = $bf8d ; 8 bit
ier = $bf8e ; 8 bit
keyboard_port = $bd00 ; 8 bit Keyboard Scan-Row Input
system_register = $bc00 ; 8 bit System Register