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 09a0295..258e477 100755 Binary files a/rom/rom.bin and b/rom/rom.bin differ diff --git a/rom/rom.elf b/rom/rom.elf index aaa08f0..b04fb75 100755 Binary files a/rom/rom.elf and b/rom/rom.elf differ