Instantly share code, notes, and snippets.

@Ersanio /chip8mem.asm Secret
Last active Sep 4, 2018

Embed
What would you like to do?
65c816 chip-8 memory definitions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; 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