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

32 lines
1.1 KiB
INI
Raw Normal View History

@begin: scope:[] from
2018-11-11 20:51:36 +00:00
[0] phi()
to:@1
@1: scope:[] from @begin
2018-11-11 20:51:36 +00:00
[1] phi()
[2] call main
to:@end
@end: scope:[] from @1
2018-11-11 20:51:36 +00:00
[3] phi()
main: scope:[main] from @1
asm { sei }
2018-11-11 20:51:36 +00:00
[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
2019-05-30 20:29:04 +00:00
[8] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) | (byte) $80
[9] *((const byte*) RASTER#0) ← (byte) 0
2018-11-11 20:51:36 +00:00
[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
2018-11-11 20:51:36 +00:00
[13] *((const byte*) FGCOL#0) ← ++ *((const byte*) FGCOL#0)
to:main::@1
irq: scope:[irq] from
2018-11-11 20:51:36 +00:00
[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
2018-11-11 20:51:36 +00:00
[17] return
to:@return