2019-09-20 06:34:51 +00:00
|
|
|
(label) @1
|
|
|
|
(label) @begin
|
|
|
|
(label) @end
|
2019-09-29 18:57:23 +00:00
|
|
|
(const byte*) SCREEN SCREEN = (byte*) 1024
|
2019-09-20 06:34:51 +00:00
|
|
|
(const word) STACK_BASE STACK_BASE = (word) $103
|
|
|
|
(void()) main()
|
2019-09-22 21:12:19 +00:00
|
|
|
(byte~) main::$0 reg byte a 2.0
|
2019-09-20 06:34:51 +00:00
|
|
|
(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
|
2019-09-23 15:53:23 +00:00
|
|
|
(const byte) plus::OFFSET_STACK_RETURN OFFSET_STACK_RETURN = (byte) 1
|
2019-09-20 06:34:51 +00:00
|
|
|
(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
|
|
|
|
|
2019-09-22 21:12:19 +00:00
|
|
|
reg byte a [ main::$0 ]
|
|
|
|
zp ZP_BYTE:2 [ plus::a#0 ]
|
2019-09-20 06:34:51 +00:00
|
|
|
reg byte a [ plus::b#0 ]
|
|
|
|
reg byte a [ plus::return#0 ]
|