mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-02-07 11:31:23 +00:00
Fixed BRK handler to retain value of A-reg.
This commit is contained in:
parent
2f8de46d0e
commit
18c9e9528f
@ -419,10 +419,11 @@ brkHandler:
|
||||
pla ; retrieve saved P reg
|
||||
pha
|
||||
and #$10 ; check for BRK bit
|
||||
beq _jbrk ; if not brk, handle without bank switch
|
||||
beq + ; if not brk, handle without bank switch
|
||||
bit setROM ; for BRK, do bank switch
|
||||
bit $c051 ; also switch to text screen 1
|
||||
bit $c054
|
||||
+ lda $45
|
||||
_jbrk jmp $1111 ; self-modified by init
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user