]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Swap xsurf ide-ports
authorToni Wilen <twilen@winuae.net>
Wed, 7 Jan 2026 14:54:03 +0000 (16:54 +0200)
committerToni Wilen <twilen@winuae.net>
Wed, 7 Jan 2026 14:54:03 +0000 (16:54 +0200)
idecontrollers.cpp

index a666aceb37e55944e9a663d32eb607e7cae99fba..4c8218f5dddb90de88f852351a01161169b3f7e3 100644 (file)
@@ -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;