SHR: Fix off-by-one in CLG

This commit is contained in:
Bobbi Webber-Manners 2023-01-08 00:54:16 -05:00
parent f8996c3c3b
commit c88f69dad7
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -336,6 +336,7 @@ SHRPOINT BIT SHRCURROUT ; First point outside?
:OUT SEP #$30 ; 8 bit M & X
MX %11 ; Tell Merlin
RTS
SHRPOINT2 SEP #$30 ; 8 bit M & X
MX %11 ; Tell Merlin
@ -824,6 +825,7 @@ SHRVDU16 >>> ENTMAIN
REP #$30 ; 16 bit M & X
MX %00 ; Tell Merlin
INC SHRWINTOP
INC SHRWINRGT
LDX SHRWINBTM
LDA SHRWINLFT
LSR A ; Divide left by 4
@ -895,6 +897,7 @@ SHRVDU16 >>> ENTMAIN
:DONE REP #$30 ; 16 bit M & X
MX %00 ; Tell Merlin
DEC SHRWINTOP
DEC SHRWINRGT
SEC ; Back to 6502 emu mode
XCE