mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-08-14 15:27:26 +00:00
Fixed BRK handler to retain value of A-reg.
This commit is contained in:
@@ -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
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user