mirror of
https://github.com/bobbimanners/Applecorn.git
synced 2025-03-06 01:29:27 +00:00
auxmem.bytwrd.s/auxmem.gfx.s: Removed PHP/SEI ... PLP.
This commit is contained in:
parent
0adf054973
commit
cd29d9e30c
BIN
applecorn.po
BIN
applecorn.po
Binary file not shown.
@ -124,7 +124,6 @@ WORDMAX EQU WORDSZ/2-1
|
||||
*
|
||||
WORDHND PHA
|
||||
PHP
|
||||
SEI
|
||||
STA OSAREG ; Store registers
|
||||
STX OSCTRL+0 ; Point to control block
|
||||
STY OSCTRL+1
|
||||
@ -149,7 +148,6 @@ WORDGO1 LDA #WORDOFF+WORDMAX+1
|
||||
*
|
||||
BYTEHND PHA
|
||||
PHP
|
||||
SEI
|
||||
STA OSAREG ; Store registers
|
||||
STX OSXREG
|
||||
STY OSYREG
|
||||
@ -201,7 +199,7 @@ BYTWRDGO JSR JMPADDR ; Call the routine
|
||||
* X,Y,Cy from routine returned to caller
|
||||
|
||||
BYTWRDEXIT ROR A ; Move Carry to A
|
||||
PLP ; Restore original flags and IRQs
|
||||
PLP ; Restore original flags
|
||||
ROL A ; Move Carry back to flags
|
||||
PLA ; Restore A
|
||||
CLV ; Clear V = Actioned
|
||||
@ -217,7 +215,7 @@ BYTWRDFAIL PHX ; *DEBUG*
|
||||
BVC BYTEFAIL1 ; Debug turned off
|
||||
JSR UNSUPBYTWRD ; *DEBUG*
|
||||
BYTEFAIL1 LDX #$FF ; X=&FF if unclaimed
|
||||
PLP ; Restore original flags and IRQs
|
||||
PLP ; Restore original flags
|
||||
PLA ; Restore A
|
||||
BIT SETV ; Set V = Not actioned
|
||||
RTS
|
||||
|
@ -21,15 +21,12 @@ PRCHRSOFT CMP #$A0 ; Convert to screen code
|
||||
TAX
|
||||
:B1 PHX
|
||||
JSR HCHARADDR ; Addr in VDUADDR
|
||||
PHP ; Disable IRQs while
|
||||
SEI ; toggling memory
|
||||
>>> WRTMAIN
|
||||
LDA VDUADDR+0
|
||||
STA HGRADDR+0
|
||||
LDA VDUADDR+1
|
||||
STA HGRADDR+1
|
||||
>>> WRTAUX
|
||||
PLP ; Restore IRQs
|
||||
PLA ; Recover character
|
||||
>>> XF2MAIN,DRAWCHAR ; Plot char on HGR screen
|
||||
PUTCHRET >>> ENTAUX
|
||||
|
Loading…
x
Reference in New Issue
Block a user