1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-06-03 07:29:37 +00:00
kickc/src/test/ref/irq-kernel.cfg
2024-01-02 19:21:16 +01:00

25 lines
542 B
INI

__interrupt(rom_sys_c64) void irq()
irq: scope:[irq] from
[0] *BG_COLOR = WHITE
[1] *BG_COLOR = BLACK
[2] *IRQ_STATUS = IRQ_RASTER
to:irq::@return
irq::@return: scope:[irq] from irq
[3] return
to:@return
void main()
main: scope:[main] from
asm { sei }
[5] *CIA1_INTERRUPT = CIA_INTERRUPT_CLEAR_ALL
[6] *VICII_CONTROL1 = *VICII_CONTROL1 | $80
[7] *RASTER = 0
[8] *IRQ_ENABLE = IRQ_RASTER
[9] *KERNEL_IRQ = &irq
asm { cli }
to:main::@return
main::@return: scope:[main] from main
[11] return
to:@return