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

@@ -5,6 +5,7 @@
;
.export soft80_cgetc
.import soft80_internal_cursorxlsb
.import cursor
.importzp tmp1
@@ -45,9 +46,10 @@ invertcursor:
ldy #$00
jsr setcolor
lda CURS_X
and #$01
tax
;lda CURS_X
;and #$01
;tax
ldx soft80_internal_cursorxlsb
@lp1:
lda (SCREEN_PTR),y
eor nibble,x