diff --git a/main.s b/main.s index 3621363..7cf0769 100644 --- a/main.s +++ b/main.s @@ -58,24 +58,4 @@ irq_jump jmp (irq_vector) .addr reset .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 \ No newline at end of file diff --git a/src/variables.s b/src/variables.s index 4f627f2..3fc1370 100644 --- a/src/variables.s +++ b/src/variables.s @@ -44,3 +44,24 @@ color = $2fe ; 8 bit Fore & Background Co typelength = $2ff ; 8 bit Length of typebuffer 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 \ No newline at end of file