mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-10-10 08:23:49 +00:00
megadamo: learn that we can add asserts
This commit is contained in:
parent
63b251cb7d
commit
7f38158fa4
@ -137,18 +137,24 @@ toloopB:dex ; 2
|
|||||||
|
|
||||||
|
|
||||||
to_begin_loop:
|
to_begin_loop:
|
||||||
|
; 12*4 = 48 lines of HIRES = 3120
|
||||||
|
; -4 set HIRES
|
||||||
|
; -1038 play_music
|
||||||
|
; =========
|
||||||
|
; 2078
|
||||||
|
|
||||||
bit HIRES ; 4
|
bit HIRES ; 4
|
||||||
|
|
||||||
; 3116 - 1038 (music) = 2078
|
; jsr play_music ; 6 + 1032
|
||||||
|
|
||||||
jsr play_music
|
|
||||||
|
|
||||||
; Try X=5 Y=67 cycles=2078
|
; Try X=5 Y=67 cycles=2078
|
||||||
; Try X=11 Y=51 cycles=3112 R4
|
; Try X=11 Y=51 cycles=3112 R4
|
||||||
|
|
||||||
ldy #67 ; 2
|
nop
|
||||||
toloop8:ldx #5 ; 2
|
nop
|
||||||
|
|
||||||
|
ldy #51 ; 2
|
||||||
|
toloop8:ldx #11 ; 2
|
||||||
toloop9:dex ; 2
|
toloop9:dex ; 2
|
||||||
bne toloop9 ; 2nt/3
|
bne toloop9 ; 2nt/3
|
||||||
dey ; 2
|
dey ; 2
|
||||||
|
@ -366,7 +366,7 @@ adjust_xpos:
|
|||||||
jmp wf_display_loop ; 3
|
jmp wf_display_loop ; 3
|
||||||
|
|
||||||
|
|
||||||
|
.align $100
|
||||||
|
|
||||||
;=========================================================
|
;=========================================================
|
||||||
; fast copy rows 22-36 from $C00 to $400
|
; fast copy rows 22-36 from $C00 to $400
|
||||||
@ -374,6 +374,8 @@ adjust_xpos:
|
|||||||
;
|
;
|
||||||
; 7+ 8*[9*7 + 7] + 5 = 572
|
; 7+ 8*[9*7 + 7] + 5 = 572
|
||||||
|
|
||||||
|
.assert >gr_copy_row22 = >gr_copy_row_done, error, "gr_copy_row22 crosses page"
|
||||||
|
|
||||||
gr_copy_row22:
|
gr_copy_row22:
|
||||||
ldy #8 ; 2
|
ldy #8 ; 2
|
||||||
ldx XPOS ; 3
|
ldx XPOS ; 3
|
||||||
@ -399,7 +401,7 @@ grcr_loop:
|
|||||||
bne grcr_loop ; 3
|
bne grcr_loop ; 3
|
||||||
; -1
|
; -1
|
||||||
rts ; 6
|
rts ; 6
|
||||||
|
gr_copy_row_done:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user