-
-
Save Ersanio/41bf772a6dca04a0b3748e76f623bfc3 to your computer and use it in GitHub Desktop.
65c816 chip-8 memory definitions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;; Chip-8 memory and registers | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
!Chip8Memory = $7E1000 ;0x1000 bytes | |
!Chip8MemoryROM = !Chip8Memory+$200 | |
!Vreg = $70 ;16 bytes | |
!Stack = $80 ; 32 bytes (16 words) | |
!Ireg = $A0 ;word | |
!DelayTimer = $A2 ;byte | |
!SoundTimer = $A3 ;byte | |
!StackPointer = $A4 ;byte | |
!RNGOutput = $A5 | |
!ProgramCounter = $A6 ;word | |
!PressedKey = $1E |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment