From c923c188ac7690f3b6db411f83ef9b1b16921c8e Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 25 Oct 2022 11:23:19 -0500 Subject: [PATCH] Fix stack start and spelling in ROM --- rom/rom.68k | 4 ++-- rom/rom.bin | Bin 178 -> 178 bytes rom/rom.elf | Bin 924 -> 924 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rom/rom.68k b/rom/rom.68k index 2568bc3..05824c9 100644 --- a/rom/rom.68k +++ b/rom/rom.68k @@ -5,7 +5,7 @@ start: bra.b find_first_card romfindret: move.l a0, a6 | Save the ROM card IO base in a6 for later - lea (0xEE, a6), a7 | Set up the stack at the end of the ROM's IO space RAM + lea (0xF0, a6), a7 | Set up the stack at the end of the ROM's IO space RAM bsr.b find_largest_ram | Find the largest RAM card and put the IO base in a5 move.l a0, a5 move.l d0, d7 @@ -71,7 +71,7 @@ flr_loop: move.l (0x4, a1), d1 | Load the card's size into d1 cmp.l d0, d1 | If the current size is less than the largest size found, go back to the start of the loop ble.b flr_loop - move.l d1, d0 | Store the sise and address of the new latgest card in s0 and a0 + move.l d1, d0 | Store the size and address of the new largest card in d0 and a0 move.l a1, a0 bra.b flr_loop | Loop back and check the next card flr_done: diff --git a/rom/rom.bin b/rom/rom.bin index 09a02951026cb1dd74a527ab4f6cccea92b86d73..258e4775669ff61a2eef6afaba0c4bcaab2cb95d 100755 GIT binary patch delta 11 ScmdnQxQTIsIOB(j60-mp!3078 delta 11 ScmdnQxQTIsIODsC60-mpxdcD} diff --git a/rom/rom.elf b/rom/rom.elf index aaa08f0bf5085a492f79bac6eed6d047452c0a10..b04fb750c6f29eb3a22d36bf5eb30cac599cf360 100755 GIT binary patch delta 12 TcmbQkK8JlmHsgnlIR?xC9*zWq delta 12 TcmbQkK8JlmHsiaEIR?xC9)tve