Modified delete key patch so that it does not use C4xx memory, which

causes a crash when a Mockingboard IIc+ is enabled.
This commit is contained in:
Dennis Munsie 2024-06-17 20:04:02 -04:00
parent 55c9a71e0d
commit d159a92a7d
4 changed files with 23 additions and 17 deletions

View File

@ -1,11 +0,0 @@
; call RDCHAR, convert DEL to space
; for patching into GETLN1/NXTCHAR (at $FD75)
.code
.include "iic+.defs"
.org $c4ee
jsr $cced
cmp #$ff
bne :+
lda #$88
: rts

View File

@ -0,0 +1,10 @@
; patch RDKEY to skip over NOPs and add in additional code for handling
; delete key.
.code
.PC02
.include "iic+.defs"
.org $fd10
bra :+ ; skip over the patch
lda #$88 ; replace with left arrow code
bra $fd7c ; branch back out of the patch
:

View File

@ -1,6 +0,0 @@
; patch GETLN1 to call delete key handler
.code
.include "iic+.defs"
.org $fd75
jsr $c4ee

13
rom5x/B0_FD78_del_key.s Normal file
View File

@ -0,0 +1,13 @@
; patch GETLN1 to call delete key handler
;
; This patch uses the run of NOPs in RDKEY since there wasn't enough space here
; (6 bytes needed, 5 available).
.code
.include "iic+.defs"
.org $fd78
cmp #$ff ; check for delete
beq $fd12 ; go to part 2 of the patch
cmp #$95 ; check for control-u
bne $fd84
jsr $cc1d ; lift char