mirror of
https://github.com/bobbimanners/Applecorn.git
synced 2025-04-09 11:37:14 +00:00
Some more cursor jiggery-pokery to address #243
This commit is contained in:
parent
ae68427b33
commit
75333d5638
BIN
applecorn.po
BIN
applecorn.po
Binary file not shown.
@ -553,7 +553,7 @@ KEYCOPYTAB LDA FXTABCHAR ; Prepare TAB if no copy cursor
|
||||
BVC KEYREADOK1 ; No copy cursor, return TAB
|
||||
LDA OLDCHAR ; Get the char under cursor
|
||||
PHA
|
||||
JSR OUTCHARCP ; Output it to restore and move cursor
|
||||
JSR PUTCOPYCURS ; Output it to restore and move cursor
|
||||
JSR GETCHRC ; Save char under cursor
|
||||
STA OLDCHAR
|
||||
PLA
|
||||
|
15
auxmem.vdu.s
15
auxmem.vdu.s
@ -154,7 +154,7 @@ OUTCHAR LDX FXVDUQLEN
|
||||
BIT VDUSTATUS
|
||||
BMI OUTCHEXIT ; VDU disabled
|
||||
OUTCHARCP JSR PRCHRC ; Store char, checking keypress
|
||||
JSR VDU09 ; Move cursor right
|
||||
OUTCHARCP2 JSR VDU09 ; Move cursor right
|
||||
|
||||
* OSBYTE &75 - Read VDUSTATUS
|
||||
*****************************
|
||||
@ -281,7 +281,7 @@ COPYMOVE PHA
|
||||
JSR GETCHRC
|
||||
STA COPYCHAR
|
||||
LDA CURSORED
|
||||
JSR PUTCHRC ; Edit cursor
|
||||
JSR PUTCURSOR ; Edit cursor
|
||||
SEC
|
||||
JSR COPYSWAP2 ; Initialise copy cursor
|
||||
ROR FLASHER
|
||||
@ -401,6 +401,17 @@ PUTCURSOR TAX ; Preserve character
|
||||
RTS
|
||||
|
||||
|
||||
* Wrapper around OUTCHARCP used when drawing copy cursor
|
||||
PUTCOPYCURS TAX ; Preserve character
|
||||
BIT VDUSCREEN
|
||||
BVS :SHR
|
||||
TXA
|
||||
JMP OUTCHARCP
|
||||
:SHR TXA ; Recover character
|
||||
JMP OUTCHARCP2
|
||||
RTS
|
||||
|
||||
|
||||
* OSBYTE &87 - Read character at cursor
|
||||
***************************************
|
||||
* Fetch character from screen at (TEXTX,TEXTY) and return MODE in Y
|
||||
|
Loading…
x
Reference in New Issue
Block a user