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

30 lines
929 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()
main: scope:[main] from @1
2018-08-05 22:37:40 +00:00
asm { sei }
2018-11-11 20:51:36 +00:00
[5] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0
2019-05-30 20:29:04 +00:00
[6] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) | (byte) $80
[7] *((const byte*) RASTER#0) ← (byte) 0
2018-11-11 20:51:36 +00:00
[8] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0
[9] *((const void()**) KERNEL_IRQ#0) ← &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
irq: scope:[irq] from
2018-11-11 20:51:36 +00:00
[12] *((const byte*) BGCOL#0) ← (const byte) WHITE#0
[13] *((const byte*) BGCOL#0) ← (const byte) BLACK#0
[14] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0
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