Skip to content

Instantly share code, notes, and snippets.

@gnacu
Last active March 9, 2017 21:59
Show Gist options
  • Save gnacu/cfcbc35d29b127d0471e3afc1cbd42ed to your computer and use it in GitHub Desktop.
Save gnacu/cfcbc35d29b127d0471e3afc1cbd42ed to your computer and use it in GitHub Desktop.
ptr = $fb
tptr = $fd
lptr = $71
;.x .y pointer to filename string.
;ptr points to current menu entry struct
;tptr points to parsed file current line
load
.block
jsr loadseq
sty defpage
stx defpgcnt
lda #0
sta tptr ;Initialize text
sty tptr+1 ;pointer
sta lptr ;Initialize last
sta lptr+1 ;sibling pointer
jsr parserow
rts ;Menu Loaded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment