cursor up/down adapted

This commit is contained in:
FeralChild64 committed 2020-01-06 12:05:39 +01:00
1 parent dfc6c5f90a
commit f642b55383
5 files changed
+57 -28

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
//
// Sets PNTR in a proper range (0-39 or 40-79) depending on the
//
screen_fix_PNTR:
ldy TBLX
lda LDTBL, y
php
jsr screen_get_clipped_PNTR
plp
bmi screen_fix_PNTR_0_39
// FALLTROUGH
screen_fix_PNTR_40_79:
tya
clc
adc #40
tay
// FALLTROUGH
screen_fix_PNTR_0_39:
sty PNTR
rts