From: Alan Cox Date: Wed, 3 Jun 2015 17:43:15 +0000 (+0100) Subject: dragondos: with these changes we have working floppy X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=208da017c1648586cc6ec48398156f8b919c7b99;p=FUZIX.git dragondos: with these changes we have working floppy --- diff --git a/Kernel/platform-dragon-nx32/devfd.c b/Kernel/platform-dragon-nx32/devfd.c index dd0a78a8..e77d777b 100644 --- a/Kernel/platform-dragon-nx32/devfd.c +++ b/Kernel/platform-dragon-nx32/devfd.c @@ -98,7 +98,7 @@ static int fd_transfer(uint8_t minor, bool is_read, uint8_t rawflag) goto bad; cmd[5]++; /* Move on 256 bytes in the buffer */ cmd[3]++; /* Next sector for next block */ - if (cmd[3] == 10) { + if (cmd[3] == 19) { cmd[3] = 1; /* Track on */ cmd[2]++; } diff --git a/Kernel/platform-dragon-nx32/floppy.s b/Kernel/platform-dragon-nx32/floppy.s index 07927ea0..08ca6e9d 100644 --- a/Kernel/platform-dragon-nx32/floppy.s +++ b/Kernel/platform-dragon-nx32/floppy.s @@ -216,7 +216,6 @@ fdio_dwait: ; ; Not ready, go round again ; -fdio_nogo: leay -1,y bne fdio_dwait ;