From: Toni Wilen Date: Wed, 7 Jan 2026 14:54:03 +0000 (+0200) Subject: Swap xsurf ide-ports X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=450164665774ca54ab83642e30d20d76b7f2a1fb;p=francis%2Fwinuae.git Swap xsurf ide-ports --- diff --git a/idecontrollers.cpp b/idecontrollers.cpp index a666aceb..4c8218f5 100644 --- a/idecontrollers.cpp +++ b/idecontrollers.cpp @@ -523,10 +523,10 @@ static int get_xsurf_reg(uaecptr addr, struct ide_board *board, int *portnum) { int reg = -1; if ((addr & 0xf000) == 0xb000) { - *portnum = 0; + *portnum = 1; reg = (addr >> 2) & 7; } else if ((addr & 0xf000) == 0xd000) { - *portnum = 1; + *portnum = 0; reg = (addr >> 2) & 7; } return reg;