From 82f3185f9c845e40b6903c956d71b604c6220b19 Mon Sep 17 00:00:00 2001 From: pjht Date: Wed, 23 Nov 2022 10:49:38 -0600 Subject: [PATCH] Change to 16-bit card ID register --- boot/boot.68k | 6 +++--- rom.bin | Bin 172 -> 172 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boot/boot.68k b/boot/boot.68k index 0c257b2..b2f664f 100644 --- a/boot/boot.68k +++ b/boot/boot.68k @@ -1,6 +1,6 @@ .global _start _start: -move.b #0x4, d0 +move.w #0x4, d0 | Find a storage card bsr.w find_first_card | Load the header sector for the kernel binary move.l #0x200, a1 | Set the destination address to 0x200 @@ -53,9 +53,9 @@ find_first_card: move.l #0xff0000, a0 | a0 holds the address of the current card ffc_loop: lea (0x100, a0), a0 | Move to the next card - move.b (0xff, a0), d1 | Load the type of the card into d1 + move.w (0xfe, a0), d1 | Load the type of the card into d1 beq.b ffc_done | If the type is 0 (empty slot), we have scanned all cards, so exit the loop - cmp.b d0, d1 | If the card is the type we want, return with the address in a0 + cmp.w d0, d1 | If the card is the type we want, return with the address in a0 beq.b ffc_done bra.b ffc_loop | Loop back and check the next card ffc_done: diff --git a/rom.bin b/rom.bin index a143b3cb3f32cd1f5e174eab9466795deee9393c..f268c43dcff5428832c7291c8ced5b38ee285233 100644 GIT binary patch delta 103 zcmZ3(xQ0=hfq`KK5OWyVFfb;B>3I0RWB8Dmrsbi>U@%cyj`7n(D-$~-4TgW|Y?~a? znG!zul@>4<)G#n8)iC^LU~qoP$Y7)ilojD|WME4BprpybvZ*2eg#x33XTl@DQlQCv E0G>1)f&c&j delta 103 zcmZ3(xQ0=hfq`KK5OWCFFfb;B>3I0RWB8Dmrsbi>ATUu{j`80_D-$~*4Tk^eY?~O; znG!zul@>4<)G#n8)iC^LU~qoP$RMN%lojD&WME4BprpybvZ*2eg#x33XTl@DQlQCv E0Bx`vkN^Mx