From 5c02adae3eb7f347dd5f5d0d3965db76c4f4a645 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Sun, 13 Oct 2019 15:09:43 +0200 Subject: [PATCH] small optimization of panic routine --- c64/kernal/panic.s | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/c64/kernal/panic.s b/c64/kernal/panic.s index 853e3032..ef34736a 100644 --- a/c64/kernal/panic.s +++ b/c64/kernal/panic.s @@ -60,18 +60,15 @@ panic: kernal_panic_infinite_loop: ldx #$00 stx VIC_EXTCOL - - ldx #$80 !: - dex - bne !- + inx + bpl !- ldx #$06 stx VIC_EXTCOL -!: - dex - bne !- - beq kernal_panic_infinite_loop // branch always + nop + + bne kernal_panic_infinite_loop // branch always #endif // CONFIG_PANIC_SCREEN