[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 659276] [NEW] Accessing Century byte via RTC
From: |
Ian Seyler |
Subject: |
[Qemu-devel] [Bug 659276] [NEW] Accessing Century byte via RTC |
Date: |
Tue, 12 Oct 2010 15:34:24 -0000 |
Public bug reported:
With the RTC configure for Binary instead of BCD I am getting the
incorrect result for Century.
mov al, 0x0B ; Set RTC to binary mode
out 0x70, al
in al, 0x71
bts ax, 2
mov bl, al
mov al, 0x0B
out 0x70, al
mov al, bl
out 0x71, al
mov al, 0x32 ; Century
out 0x70, al
in al, 0x71
In QEMU 0.12.5 it returns 0x20 but should return 0x14. The following
work correctly:
mov al, 0x09 ; Year
out 0x70, al
in al, 0x71
mov al, 0x08 ; Month
out 0x70, al
in al, 0x71
mov al, 0x07 ; Day
out 0x70, al
in al, 0x71
** Affects: qemu
Importance: Undecided
Status: New
--
Accessing Century byte via RTC
https://bugs.launchpad.net/bugs/659276
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
Status in QEMU: New
Bug description:
With the RTC configure for Binary instead of BCD I am getting the incorrect
result for Century.
mov al, 0x0B ; Set RTC to binary mode
out 0x70, al
in al, 0x71
bts ax, 2
mov bl, al
mov al, 0x0B
out 0x70, al
mov al, bl
out 0x71, al
mov al, 0x32 ; Century
out 0x70, al
in al, 0x71
In QEMU 0.12.5 it returns 0x20 but should return 0x14. The following work
correctly:
mov al, 0x09 ; Year
out 0x70, al
in al, 0x71
mov al, 0x08 ; Month
out 0x70, al
in al, 0x71
mov al, 0x07 ; Day
out 0x70, al
in al, 0x71
[Prev in Thread] |
Current Thread |
[Next in Thread] |