mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-13 22:30:49 +00:00
chiptune_player: minor optimization
This commit is contained in:
parent
7af457f04a
commit
254cd0b163
@ -55,8 +55,7 @@ mb_write_loop:
|
|||||||
|
|
||||||
cpx #13 ; 2
|
cpx #13 ; 2
|
||||||
bne mb_not_13 ; 3/2nt
|
bne mb_not_13 ; 3/2nt
|
||||||
cmp #$ff ; 2
|
bmi increment_offset ; 3/2nt
|
||||||
beq increment_offset ; 3/2nt
|
|
||||||
;============
|
;============
|
||||||
; typ 9
|
; typ 9
|
||||||
mb_not_13:
|
mb_not_13:
|
||||||
@ -98,7 +97,8 @@ mb_load_loop:
|
|||||||
lda (INL),y ; load register value ; 5
|
lda (INL),y ; load register value ; 5
|
||||||
|
|
||||||
sta REGISTER_DUMP,X ; 4
|
sta REGISTER_DUMP,X ; 4
|
||||||
|
;============
|
||||||
|
; 9
|
||||||
;====================
|
;====================
|
||||||
; point to next page
|
; point to next page
|
||||||
;====================
|
;====================
|
||||||
@ -112,7 +112,7 @@ mb_load_loop:
|
|||||||
cpx #13 ; if 14 we're done ; 2
|
cpx #13 ; if 14 we're done ; 2
|
||||||
bmi mb_load_loop ; otherwise, loop ; 3/2nt
|
bmi mb_load_loop ; otherwise, loop ; 3/2nt
|
||||||
;============
|
;============
|
||||||
; 19
|
; 18
|
||||||
|
|
||||||
;=========================================
|
;=========================================
|
||||||
; if A_COARSE_TONE is $ff then we are done
|
; if A_COARSE_TONE is $ff then we are done
|
||||||
@ -124,13 +124,11 @@ mb_load_loop:
|
|||||||
|
|
||||||
jmp quiet_exit ; 3
|
jmp quiet_exit ; 3
|
||||||
;===========
|
;===========
|
||||||
; typ 13
|
; typ 6
|
||||||
mb_not_done:
|
mb_not_done:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;==============================================
|
;==============================================
|
||||||
; incremement offset. If 0 move to next chunk
|
; incremement offset. If 0 move to next chunk
|
||||||
;==============================================
|
;==============================================
|
||||||
@ -202,8 +200,6 @@ back_to_first_reg_c:
|
|||||||
update_r0_pointer:
|
update_r0_pointer:
|
||||||
sta INH ; update r0 pointer ; 3
|
sta INH ; update r0 pointer ; 3
|
||||||
|
|
||||||
;============
|
|
||||||
; 18
|
|
||||||
|
|
||||||
|
|
||||||
;=================================
|
;=================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user