Skip to content

Instantly share code, notes, and snippets.

@chebert
Created June 21, 2018 23:48
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 chebert/69e68168adb7c5660cad78f4f03a8594 to your computer and use it in GitHub Desktop.
Save chebert/69e68168adb7c5660cad78f4f03a8594 to your computer and use it in GitHub Desktop.
(defrecord machine-state
;; Registers
pc sp a b c d e f h l
;; Memory Regions
video-ram ext-ram work-ram sprite-ram mmap-i/o z-ram
;; Debug Fields
;; Lists of what the last instruction changed
affected-regs affected-flags memory-updates
;; The instruction that was just disassembled this step.
disassembled-instr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment