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

+23 -26
View File
@@ -5,37 +5,34 @@
chrout_screen_CRSR_UP:
jmp chrout_screen_done
lda TBLX
beq !+
dec TBLX
!:
jmp chrout_screen_calc_lptr_done
chrout_screen_CRSR_DOWN:
jmp chrout_screen_done
lda TBLX
cmp #24
bne !+
jsr screen_scroll_up_delay_done
!:
inc TBLX
jmp chrout_screen_calc_lptr_done
chrout_screen_CRSR_LEFT:
jmp chrout_screen_done
jmp chrout_screen_calc_lptr_done
chrout_screen_CRSR_RIGHT:
jmp chrout_screen_done
jmp chrout_screen_calc_lptr_done
/* YYY disabled for rework
chrout_screen_CRSR_UP:
lda PNTR
sec
sbc #40
sta PNTR
jmp chrout_screen_calc_lptr_done
chrout_screen_CRSR_DOWN:
lda PNTR
clc
adc #40
sta PNTR
// We need to advance the pointer manually, as normalising
// now will break things. The pointer update is required
// so that we can tell if we really are on the bottom phys
// screen line or not
jsr screen_scroll_up_if_on_last_line
jmp chrout_screen_calc_lptr_done
chrout_screen_CRSR_LEFT: