From 18dc9d9b6145a04e5e49a6a2846a9f9004a8d3dd Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Wed, 30 Oct 2019 20:18:22 +0100 Subject: [PATCH] fix for INS key regression --- Makefile | 2 +- c64/kernal/screen/chrout_screen_control.s | 6 ++++++ c64/kernal/screen/chrout_screen_jumptable_codes.s | 3 --- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f375c2b6..2988e675 100644 --- a/Makefile +++ b/Makefile @@ -238,7 +238,7 @@ test_mega65: build/kernal_mega65.rom build/basic_mega65.rom build/symbols_mega65 x64 -kernal build/kernal_mega65.rom -basic build/basic_mega65.rom -moncommands build/symbols_mega65.vs -8 empty.d64 test_mega65_xemu: build/newc65.rom - ../xemu/build/bin/xc65.native -dmarev 2 -rom build/newc65.rom + ../xemu/build/bin/xmega65.native -dmarev 2 -forcerom -loadrom build/newc65.rom test_ultimate64: build/kernal_ultimate64.rom build/basic_ultimate64.rom build/symbols_ultimate64.vs x64 -kernal build/kernal_ultimate64.rom -basic build/basic_ultimate64.rom -moncommands build/symbols_ultimate64.vs -8 empty.d64 diff --git a/c64/kernal/screen/chrout_screen_control.s b/c64/kernal/screen/chrout_screen_control.s index 61fa2f4e..dda912c7 100644 --- a/c64/kernal/screen/chrout_screen_control.s +++ b/c64/kernal/screen/chrout_screen_control.s @@ -31,6 +31,12 @@ chrout_try_DEL: bne !+ jmp chrout_screen_DEL !: +chrout_try_INS: + + cmp #KEY_INS + bne !+ + jmp chrout_screen_INS +!: #if CONFIG_EDIT_STOPQUOTE chrout_try_STOP: diff --git a/c64/kernal/screen/chrout_screen_jumptable_codes.s b/c64/kernal/screen/chrout_screen_jumptable_codes.s index 28bef1cf..b12dbb7a 100644 --- a/c64/kernal/screen/chrout_screen_jumptable_codes.s +++ b/c64/kernal/screen/chrout_screen_jumptable_codes.s @@ -6,7 +6,6 @@ chrout_screen_jumptable_codes: - .byte KEY_INS .byte KEY_CLR .byte KEY_HOME .byte KEY_SHIFT_OFF @@ -24,7 +23,6 @@ __chrout_screen_jumptable_codes_end: chrout_screen_jumptable_lo: - .byte <(chrout_screen_INS - 1) .byte <(chrout_screen_CLR - 1) .byte <(chrout_screen_HOME - 1) .byte <(chrout_screen_SHIFT_OFF - 1) @@ -40,7 +38,6 @@ chrout_screen_jumptable_lo: chrout_screen_jumptable_hi: - .byte >(chrout_screen_INS - 1) .byte >(chrout_screen_CLR - 1) .byte >(chrout_screen_HOME - 1) .byte >(chrout_screen_SHIFT_OFF - 1)