diff --git a/src/test/kc/examples/c64/irq/irq-hyperscreen.c b/src/test/kc/examples/c64/irq/irq-hyperscreen.c index 147d78759..a3d8ee8b0 100644 --- a/src/test/kc/examples/c64/irq/irq-hyperscreen.c +++ b/src/test/kc/examples/c64/irq/irq-hyperscreen.c @@ -1,16 +1,16 @@ // A raster IRQ that opens the top/bottom border. #include -char* const GHOST_BYTE = (char*)$3fff; +char* const GHOST_BYTE = (char*)0x3fff; void main() { *GHOST_BYTE = 0; asm { sei } // Disable CIA 1 Timer IRQ CIA1->INTERRUPT = CIA_INTERRUPT_CLEAR; - // Set raster line to $fa - VICII->CONTROL1 &=$7f; - VICII->RASTER = $fa; + // Set raster line to 0xfa + VICII->CONTROL1 &= 0x7f; + VICII->RASTER = 0xfa; // Enable Raster Interrupt VICII->IRQ_ENABLE = IRQ_RASTER; // Set the IRQ routine @@ -27,11 +27,11 @@ void main() { __interrupt(hardware_clobber) void irq_bottom_1() { VICII->BORDER_COLOR = WHITE; // Set screen height to 24 lines - this is done after the border should have started drawing - so it wont start - VICII->CONTROL1 &= ($ff^VICII_RSEL); + VICII->CONTROL1 &= (0xff^VICII_RSEL); // Acknowledge the IRQ VICII->IRQ_STATUS = IRQ_RASTER; - // Trigger IRQ 2 at line $fd - VICII->RASTER = $fd; + // Trigger IRQ 2 at line 0xfd + VICII->RASTER = 0xfd; *HARDWARE_IRQ = &irq_bottom_2; VICII->BORDER_COLOR = RED; } @@ -43,8 +43,8 @@ __interrupt(hardware_clobber) void irq_bottom_2() { VICII->CONTROL1 |= VICII_RSEL; // Acknowledge the IRQ VICII->IRQ_STATUS = IRQ_RASTER; - // Trigger IRQ 1 at line $fa - VICII->RASTER = $fa; + // Trigger IRQ 1 at line 0xfa + VICII->RASTER = 0xfa; *HARDWARE_IRQ = &irq_bottom_1; VICII->BORDER_COLOR = RED; -} \ No newline at end of file +}