mirror of
https://github.com/mgcaret/rom4x.git
synced 2024-12-01 01:52:15 +00:00
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:
parent
55c9a71e0d
commit
d159a92a7d
@ -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
|
||||
|
10
rom5x/B0_FD10_del_key_part_2.s
Normal file
10
rom5x/B0_FD10_del_key_part_2.s
Normal 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
|
||||
:
|
@ -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
13
rom5x/B0_FD78_del_key.s
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user