mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-10-24 23:25:28 +00:00
mockingboard: the final bug was forgetting to set Y to zero
This commit is contained in:
parent
a22629e73f
commit
aaa015e98f
@ -63,11 +63,12 @@ mockingboard_found:
|
|||||||
; load pointer to the music
|
; load pointer to the music
|
||||||
;===========================
|
;===========================
|
||||||
|
|
||||||
lda #<ksp_theme2
|
lda #<ksp_theme
|
||||||
sta INL
|
sta INL
|
||||||
lda #>ksp_theme2
|
lda #>ksp_theme
|
||||||
sta INH
|
sta INH
|
||||||
|
|
||||||
|
ldy #0
|
||||||
lda (INL),Y ; read in frame delay
|
lda (INL),Y ; read in frame delay
|
||||||
sta MB_FRAME_DIFF
|
sta MB_FRAME_DIFF
|
||||||
inc INL ; FIXME: should check if we oflowed
|
inc INL ; FIXME: should check if we oflowed
|
||||||
@ -78,6 +79,7 @@ mockingboard_found:
|
|||||||
lda #>ksp_theme2
|
lda #>ksp_theme2
|
||||||
sta NUM1H
|
sta NUM1H
|
||||||
|
|
||||||
|
ldy #0
|
||||||
lda (NUM1L),Y ; read in frame delay
|
lda (NUM1L),Y ; read in frame delay
|
||||||
sta MB_FRAME_DIFF2
|
sta MB_FRAME_DIFF2
|
||||||
inc NUM1L ; FIXME: should check if we oflowed
|
inc NUM1L ; FIXME: should check if we oflowed
|
||||||
|
@ -390,7 +390,7 @@ top_regs:
|
|||||||
ldx #$7 ; load X as 7 (we increment first)
|
ldx #$7 ; load X as 7 (we increment first)
|
||||||
top_regs_loop:
|
top_regs_loop:
|
||||||
inx ; increment
|
inx ; increment
|
||||||
cpx #$16
|
cpx #16
|
||||||
beq done_with_masks ; exit if done
|
beq done_with_masks ; exit if done
|
||||||
|
|
||||||
ror MASK
|
ror MASK
|
||||||
|
Loading…
Reference in New Issue
Block a user