maintain lsb of cursor x position internally, saves some bytes and some cycles too :)

This commit is contained in:
mrdudz
2015-10-12 15:44:41 +02:00
parent 2a0f6c420b
commit 21732e3c5b
5 changed files with 39 additions and 25 deletions

View File

@@ -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