1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-10-21 02:24:34 +00:00
kickc/src/test/ref/irq-hardware.cfg
2019-05-30 22:29:07 +02:00

32 lines
1.1 KiB
INI

@begin: scope:[] from
[0] phi()
to:@1
@1: scope:[] from @begin
[1] phi()
[2] call main
to:@end
@end: scope:[] from @1
[3] phi()
main: scope:[main] from @1
asm { sei }
[5] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0
[6] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0
[7] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0
[8] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) | (byte) $80
[9] *((const byte*) RASTER#0) ← (byte) 0
[10] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0
[11] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_ALL)(void()) irq()
asm { cli }
to:main::@1
main::@1: scope:[main] from main main::@1
[13] *((const byte*) FGCOL#0) ← ++ *((const byte*) FGCOL#0)
to:main::@1
irq: scope:[irq] from
[14] *((const byte*) BGCOL#0) ← (const byte) WHITE#0
[15] *((const byte*) BGCOL#0) ← (const byte) BLACK#0
[16] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0
to:irq::@return
irq::@return: scope:[irq] from irq
[17] return
to:@return