Skip to content

Modified delete key patch so that it does not use C4xx memory #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions rom5x/B0_C4EE_del_key.s

This file was deleted.

10 changes: 10 additions & 0 deletions rom5x/B0_FD10_del_key_part_2.s
Original file line number Diff line number Diff line change
@@ -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
:
6 changes: 0 additions & 6 deletions rom5x/B0_FD75_patch_getln1.s

This file was deleted.

13 changes: 13 additions & 0 deletions rom5x/B0_FD78_del_key.s
Original file line number Diff line number Diff line change
@@ -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