mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-10-21 17:24:39 +00:00
23 lines
724 B
INI
23 lines
724 B
INI
@begin: scope:[] from
|
|
kickasm(location (const byte*) SPRITE#0) {{ .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff))
|
|
.for (var y=0; y<21; y++)
|
|
.for (var x=0;x<3; x++)
|
|
.byte pic.getSinglecolorByte(x,y)
|
|
}}
|
|
to:@1
|
|
@1: scope:[] from @begin
|
|
[1] phi()
|
|
[2] call main
|
|
to:@end
|
|
@end: scope:[] from @1
|
|
[3] phi()
|
|
main: scope:[main] from @1
|
|
[4] *((const byte*) SCREEN#0+(word) $3f8) ← (byte)(word)(const byte*) SPRITE#0/(byte) $40
|
|
[5] *((const byte*) SPRITES_ENABLE#0) ← (byte) 1
|
|
[6] *((const byte*) SPRITES_XPOS#0) ← (byte) $64
|
|
[7] *((const byte*) SPRITES_YPOS#0) ← (byte) $64
|
|
to:main::@return
|
|
main::@return: scope:[main] from main
|
|
[8] return
|
|
to:@return
|