small screen code size optimization
This commit is contained in:
1 parent
9d11276289
commit
cfe8736778
2 files changed
+2
-2
No files matched your search
@@ -26,7 +26,6 @@ chrout_screen_TAB_FW:
|
|||||||
chrout_screen_TAB_BW:
|
chrout_screen_TAB_BW:
|
||||||
|
|
||||||
jsr screen_get_clipped_PNTR
|
jsr screen_get_clipped_PNTR
|
||||||
cpy #$00 // YYY maybe it's worth to put this inside screen_get_clipped_PNTR?
|
|
||||||
beq !+ // column 0, recalculating pointers is not necessary, but this is a rare case nevertheless
|
beq !+ // column 0, recalculating pointers is not necessary, but this is a rare case nevertheless
|
||||||
|
|
||||||
dey
|
dey
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Get PNTR value clipped to 0-39 range in .Y, can trash .A
|
// Get PNTR value clipped to 0-39 range in .Y, sets flags to compare with 0, can trash .A
|
||||||
//
|
//
|
||||||
|
|
||||||
screen_get_clipped_PNTR:
|
screen_get_clipped_PNTR:
|
||||||
@@ -12,4 +12,5 @@ screen_get_clipped_PNTR:
|
|||||||
sbc #40
|
sbc #40
|
||||||
tay
|
tay
|
||||||
!:
|
!:
|
||||||
|
cpy #$00
|
||||||
rts
|
rts
|
||||||
Reference in new issue
Block a user