1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-30 09:57:11 +00:00
kickc/src/test/ref/irq-raster.cfg

34 lines
955 B
INI
Raw Normal View History

2018-08-05 22:37:40 +00:00
@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
2018-08-05 22:37:40 +00:00
to:@end
@end: scope:[] from @1
2018-11-11 20:51:36 +00:00
[3] phi()
(void()) main()
main: scope:[main] from @1
2018-08-05 22:37:40 +00:00
asm { sei }
[5] *((const byte*) CIA1_INTERRUPT) ← (const byte) CIA_INTERRUPT_CLEAR
[6] *((const byte*) VIC_CONTROL) ← *((const byte*) VIC_CONTROL) | (byte) $80
[7] *((const byte*) RASTER) ← (byte) 0
[8] *((const byte*) IRQ_ENABLE) ← (const byte) IRQ_RASTER
[9] *((const void()**) KERNEL_IRQ) ← &interrupt(KERNEL_MIN)(void()) irq()
2018-08-05 22:37:40 +00:00
asm { cli }
to:main::@return
main::@return: scope:[main] from main
2018-11-11 20:51:36 +00:00
[11] return
2018-08-05 22:37:40 +00:00
to:@return
interrupt(KERNEL_MIN)(void()) irq()
2018-08-05 22:37:40 +00:00
irq: scope:[irq] from
[12] *((const byte*) BGCOL) ← (const byte) WHITE
[13] *((const byte*) BGCOL) ← (const byte) BLACK
[14] *((const byte*) IRQ_STATUS) ← (const byte) IRQ_RASTER
2018-08-05 22:37:40 +00:00
to:irq::@return
irq::@return: scope:[irq] from irq
2018-11-11 20:51:36 +00:00
[15] return
2018-08-05 22:37:40 +00:00
to:@return