Skip to content

Commit b28c9bd

Browse files
mcaylandhuth
authored andcommitted
next-cube: rename old_scr2 and scr2_2 in next_scr2_rtc_update()
Rename them to old_scr2_rtc and scr2_rtc to reflect that they contain the previous and current values of the SCR2 RTC bits. Signed-off-by: Mark Cave-Ayland <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Message-ID: <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent 6963b2c commit b28c9bd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

hw/m68k/next-cube.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,17 @@ static void next_scr2_led_update(NeXTPC *s)
177177

178178
static void next_scr2_rtc_update(NeXTPC *s)
179179
{
180-
uint8_t old_scr2, scr2_2;
180+
uint8_t old_scr2_rtc, scr2_rtc;
181181

182-
old_scr2 = extract32(s->old_scr2, 8, 8);
183-
scr2_2 = extract32(s->scr2, 8, 8);
182+
old_scr2_rtc = extract32(s->old_scr2, 8, 8);
183+
scr2_rtc = extract32(s->scr2, 8, 8);
184184

185-
if (scr2_2 & 0x1) {
185+
if (scr2_rtc & 0x1) {
186186
/* DPRINTF("RTC %x phase %i\n", scr2_2, rtc->phase); */
187187
/* If we are in going down clock... do something */
188-
if (((old_scr2 & SCR2_RTCLK) != (scr2_2 & SCR2_RTCLK)) &&
189-
((scr2_2 & SCR2_RTCLK) == 0)) {
190-
if (scr2_2 & SCR2_RTDATA) {
188+
if (((old_scr2_rtc & SCR2_RTCLK) != (scr2_rtc & SCR2_RTCLK)) &&
189+
((scr2_rtc & SCR2_RTCLK) == 0)) {
190+
if (scr2_rtc & SCR2_RTDATA) {
191191
qemu_irq_raise(s->rtc_data_irq);
192192
} else {
193193
qemu_irq_lower(s->rtc_data_irq);

0 commit comments

Comments
 (0)