maintain lsb of cursor x position internally, saves some bytes and some cycles too :)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
;
|
||||
|
||||
.export soft80_kplot
|
||||
.import soft80_internal_cursorxlsb
|
||||
|
||||
.include "c64.inc"
|
||||
.include "soft80.inc"
|
||||
@@ -25,6 +26,10 @@ soft80_kplot:
|
||||
adc _bitmapxhi,y
|
||||
sta SCREEN_PTR+1
|
||||
|
||||
tya
|
||||
and #1
|
||||
sta soft80_internal_cursorxlsb
|
||||
|
||||
; calc pointer to vram
|
||||
tya
|
||||
lsr a ; NOTE: we can save 2 cycles here at the expense of
|
||||
|
||||
Reference in New Issue
Block a user