mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-09-30 09:57:11 +00:00
34 lines
955 B
INI
34 lines
955 B
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()
|
|
|
|
(void()) main()
|
|
main: scope:[main] from @1
|
|
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()
|
|
asm { cli }
|
|
to:main::@return
|
|
main::@return: scope:[main] from main
|
|
[11] return
|
|
to:@return
|
|
|
|
interrupt(KERNEL_MIN)(void()) irq()
|
|
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
|
|
to:irq::@return
|
|
irq::@return: scope:[irq] from irq
|
|
[15] return
|
|
to:@return
|