|
@@ -177,17 +177,17 @@ static void next_scr2_led_update(NeXTPC *s)
|
|
|
|
|
|
static void next_scr2_rtc_update(NeXTPC *s)
|
|
static void next_scr2_rtc_update(NeXTPC *s)
|
|
{
|
|
{
|
|
- uint8_t old_scr2, scr2_2;
|
|
|
|
|
|
+ uint8_t old_scr2_rtc, scr2_rtc;
|
|
|
|
|
|
- old_scr2 = extract32(s->old_scr2, 8, 8);
|
|
|
|
- scr2_2 = extract32(s->scr2, 8, 8);
|
|
|
|
|
|
+ old_scr2_rtc = extract32(s->old_scr2, 8, 8);
|
|
|
|
+ scr2_rtc = extract32(s->scr2, 8, 8);
|
|
|
|
|
|
- if (scr2_2 & 0x1) {
|
|
|
|
|
|
+ if (scr2_rtc & 0x1) {
|
|
/* DPRINTF("RTC %x phase %i\n", scr2_2, rtc->phase); */
|
|
/* DPRINTF("RTC %x phase %i\n", scr2_2, rtc->phase); */
|
|
/* If we are in going down clock... do something */
|
|
/* If we are in going down clock... do something */
|
|
- if (((old_scr2 & SCR2_RTCLK) != (scr2_2 & SCR2_RTCLK)) &&
|
|
|
|
- ((scr2_2 & SCR2_RTCLK) == 0)) {
|
|
|
|
- if (scr2_2 & SCR2_RTDATA) {
|
|
|
|
|
|
+ if (((old_scr2_rtc & SCR2_RTCLK) != (scr2_rtc & SCR2_RTCLK)) &&
|
|
|
|
+ ((scr2_rtc & SCR2_RTCLK) == 0)) {
|
|
|
|
+ if (scr2_rtc & SCR2_RTDATA) {
|
|
qemu_irq_raise(s->rtc_data_irq);
|
|
qemu_irq_raise(s->rtc_data_irq);
|
|
} else {
|
|
} else {
|
|
qemu_irq_lower(s->rtc_data_irq);
|
|
qemu_irq_lower(s->rtc_data_irq);
|