mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 06:30:16 +00:00
replace JMP with BEQ to save 1 byte.
This commit is contained in:
parent
3cbe485b94
commit
aaecf3cfec
@ -104,8 +104,8 @@ UNINSTALL:
|
|||||||
;
|
;
|
||||||
|
|
||||||
PAGECOUNT:
|
PAGECOUNT:
|
||||||
lda #0
|
lda #<(128 * 1024 / 256)
|
||||||
ldx #2
|
ldx #>(128 * 1024 / 256)
|
||||||
rts
|
rts
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
@ -154,7 +154,7 @@ COPYFROM:
|
|||||||
; - X contains the page offset
|
; - X contains the page offset
|
||||||
; - Y contains zero
|
; - Y contains zero
|
||||||
|
|
||||||
jmp @L5
|
beq @L5 ; will always branch, because setup ends with ldy #0
|
||||||
|
|
||||||
@L1: lda RAMC_WINDOW,x
|
@L1: lda RAMC_WINDOW,x
|
||||||
sta (ptr2),y
|
sta (ptr2),y
|
||||||
@ -202,7 +202,7 @@ COPYTO:
|
|||||||
; - X contains the page offset
|
; - X contains the page offset
|
||||||
; - Y contains zero
|
; - Y contains zero
|
||||||
|
|
||||||
jmp @L5
|
beq @L5 ; will always branch, because setup ends with ldy #0
|
||||||
|
|
||||||
@L1: lda (ptr2),y
|
@L1: lda (ptr2),y
|
||||||
sta RAMC_WINDOW,x
|
sta RAMC_WINDOW,x
|
||||||
|
Loading…
Reference in New Issue
Block a user