From 31d181aac38cdafcf1a5c7bed4d4030c61dfd715 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Fri, 11 Oct 2019 23:10:13 +0200 Subject: [PATCH] MEMTOP/MEMBOT optimization --- c64/kernal/membot.s | 7 ++++--- c64/kernal/memtop.s | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/c64/kernal/membot.s b/c64/kernal/membot.s index 086545c0..84e6ce44 100644 --- a/c64/kernal/membot.s +++ b/c64/kernal/membot.s @@ -12,13 +12,14 @@ MEMBOT: bcc membot_set - ldx MEMSTR+0 ldy MEMSTR+1 - rts + ldx MEMSTR+0 + + // FALLTROUGH membot_set: + sty MEMSTR+1 stx MEMSTR+0 - stx MEMSTR+1 rts diff --git a/c64/kernal/memtop.s b/c64/kernal/memtop.s index dd50497a..485112a0 100644 --- a/c64/kernal/memtop.s +++ b/c64/kernal/memtop.s @@ -14,7 +14,8 @@ MEMTOP: ldy MEMSIZK+1 ldx MEMSIZK+0 - rts + + // FALLTROUGH memtop_set: