From: William PECNIK <wpecnik@tecwec.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] can anybody check ?
Date: Mon, 8 Dec 2008 01:38:20 +0100 [thread overview]
Message-ID: <200812080138.21206.wpecnik@tecwec.org> (raw)
Hello,
Perhaps not the good way to report a "potential" bug, but i try ....
in hw/fdc.c in qemu-0.9.1.tar.gz line 768-781
static uint32_t fdctrl_read_dor (fdctrl_t *fdctrl)
{
uint32_t retval = 0;
/* Drive motors state indicators */
if (drv0(fdctrl)->drflags & FDRIVE_MOTOR_ON)
retval |= 1 << 5;
if (drv1(fdctrl)->drflags & FDRIVE_MOTOR_ON)
retval |= 1 << 4;
/* DMA enable */
retval |= fdctrl->dma_en << 3;
/* Reset indicator */
retval |= (fdctrl->state & FD_CTRL_RESET) == 0 ? 0x04 : 0;
/* Selected drive */
retval |= fdctrl->cur_drv;
FLOPPY_DPRINTF("digital output register: 0x%02x\n", retval);
return retval;
}
In my book PC Programming System edition CampuPress they say:
bit 7 r/w motor on drive 3
bit 6 r/w motor on drive 2
bit 5 r/w motor on drive 1
bit 4 r/w motor on drive 0,
... for the port 0x3F2
and as i can see in source it is inverse , can anybody confirm ?
thanks a lot
william pecnik
next reply other threads:[~2008-12-08 0:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 0:38 William PECNIK [this message]
2008-12-11 17:05 ` [Qemu-devel] can anybody check ? Blue Swirl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200812080138.21206.wpecnik@tecwec.org \
--to=wpecnik@tecwec.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.