From 27e6f92b39a7014beaa328c3a711dfcdd8071651 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Wed, 24 Apr 2019 14:24:12 +0930 Subject: [PATCH] fix bug in MEMTOP routine. Reorder instructions to reduce byte-level similarity with C64 KERNAL, even though it should be totally fine. --- c64/kernal/memtop.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c64/kernal/memtop.s b/c64/kernal/memtop.s index 548ba1a9..70c94fc3 100644 --- a/c64/kernal/memtop.s +++ b/c64/kernal/memtop.s @@ -5,11 +5,11 @@ memtop: ;; http://unusedino.de/ec64/technical/project64/mapping_c64.html bcc memtop_set - LDX MEMSIZ+0 LDY MEMSIZ+1 + LDX MEMSIZ+0 rts memtop_set: + sty MEMSIZ+1 stx MEMSIZ+0 - stx MEMSIZ+1 rts