mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-20 02:32:36 +00:00
25 lines
734 B
Plaintext
25 lines
734 B
Plaintext
(label) @1
|
|
(label) @begin
|
|
(label) @end
|
|
(const byte*) SCREEN SCREEN = (byte*) 1024
|
|
(const word) STACK_BASE STACK_BASE = (word) $103
|
|
(void()) main()
|
|
(byte~) main::$0 reg byte a 2.0
|
|
(label) main::@return
|
|
__stackcall (byte()) plus((byte) plus::a , (byte) plus::b)
|
|
(label) plus::@return
|
|
(const byte) plus::OFFSET_STACK_A OFFSET_STACK_A = (byte) 0
|
|
(const byte) plus::OFFSET_STACK_B OFFSET_STACK_B = (byte) 1
|
|
(const byte) plus::OFFSET_STACK_RETURN OFFSET_STACK_RETURN = (byte) 1
|
|
(byte) plus::a
|
|
(byte) plus::a#0 a zp ZP_BYTE:2 2.0
|
|
(byte) plus::b
|
|
(byte) plus::b#0 reg byte a 4.0
|
|
(byte) plus::return
|
|
(byte) plus::return#0 reg byte a 2.0
|
|
|
|
reg byte a [ main::$0 ]
|
|
zp ZP_BYTE:2 [ plus::a#0 ]
|
|
reg byte a [ plus::b#0 ]
|
|
reg byte a [ plus::return#0 ]
|