mockingboard: the final bug was forgetting to set Y to zero

This commit is contained in:
Vince Weaver 2018-02-09 00:05:14 -05:00
parent a22629e73f
commit aaa015e98f
2 changed files with 5 additions and 3 deletions

View File

@ -63,11 +63,12 @@ mockingboard_found:
; load pointer to the music
;===========================
lda #<ksp_theme2
lda #<ksp_theme
sta INL
lda #>ksp_theme2
lda #>ksp_theme
sta INH
ldy #0
lda (INL),Y ; read in frame delay
sta MB_FRAME_DIFF
inc INL ; FIXME: should check if we oflowed
@ -78,6 +79,7 @@ mockingboard_found:
lda #>ksp_theme2
sta NUM1H
ldy #0
lda (NUM1L),Y ; read in frame delay
sta MB_FRAME_DIFF2
inc NUM1L ; FIXME: should check if we oflowed

View File

@ -390,7 +390,7 @@ top_regs:
ldx #$7 ; load X as 7 (we increment first)
top_regs_loop:
inx ; increment
cpx #$16
cpx #16
beq done_with_masks ; exit if done
ror MASK