Fix stack start and spelling in ROM
This commit is contained in:
parent
8291610a74
commit
c923c188ac
@ -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:
|
||||
|
BIN
rom/rom.bin
BIN
rom/rom.bin
Binary file not shown.
BIN
rom/rom.elf
BIN
rom/rom.elf
Binary file not shown.
Loading…
Reference in New Issue
Block a user