From dc1538b8c2a51ce38b8a3036b5da78e7370dc0f2 Mon Sep 17 00:00:00 2001 From: Matt Harlum Date: Sat, 22 Apr 2023 17:06:09 +0000 Subject: [PATCH] iderom: fixup AT-Bus offset stuff --- iderom/bootldr.S | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/iderom/bootldr.S b/iderom/bootldr.S index 015a042..c0dc3b7 100644 --- a/iderom/bootldr.S +++ b/iderom/bootldr.S @@ -107,11 +107,12 @@ MyConfigDev: dc.l 0 Init: movem.l d2-d7/a2-a6,-(sp) move.l MyConfigDev(PC),a1 - move.w cd_Rom+er_InitDiagVec(a1),d0 ; Get rom offset - ror.l #8,d0 ; If the rom offset is odd - andi.l #1,d0 ; Fix up the driver offset - addi.l #DRIVEROFFSET,d0 - + move.l #DRIVEROFFSET,d0 + move.w cd_Rom+er_InitDiagVec(a1),d1 ; Get rom offset + cmp.l #8,d1 ; LIV2 board with even rom addrss? + beq .even +.odd add.l #1,d0 ; No, AT-Bus style board with odd address +.even move.l BoardBase(PC),a0 bsr _relocate tst.l d0