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/5c7ab6f39051d5cd5c593ac3165eefc4 to your computer and use it in GitHub Desktop.
Save Ersanio/5c7ab6f39051d5cd5c593ac3165eefc4 to your computer and use it in GitHub Desktop.
65c816 chip-8 opcode function calls
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; OPCODES
;;; This block handles opcodes $0-$F.
;;; Opcodes $8 and $F are handled in yet another table as
;;; they contain multiple other opcodes
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Opcodes:
dw ClearOrReturn ; $00
dw Jump ; $01
dw CallSubroutine ; $02
dw SkipIfXEqual ; $03
dw SkipIfXNotEqual ; $04
dw SkipIfXEqualY ; $05
dw SetX ; $06
dw AddX ; $07
dw Arithmetic ; $08
dw SkipIfXNotEqualY ; $09
dw SetI ; $0A
dw JumpWithOffset ; $0B
dw Rnd ; $0C
dw DrawSprite ; $0D
dw SkipOnKey ; $0E
dw Misc ; $0F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment