Skip to content

Instantly share code, notes, and snippets.

@Ersanio
Last active September 4, 2018 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ersanio/41bf772a6dca04a0b3748e76f623bfc3 to your computer and use it in GitHub Desktop.
Save Ersanio/41bf772a6dca04a0b3748e76f623bfc3 to your computer and use it in GitHub Desktop.
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