1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-16 21:07:56 +00:00
kickc/src/test/ref/procedure-callingconvention-stack-12.sym
2020-03-29 21:00:25 +02:00

33 lines
1.0 KiB
Plaintext

(label) @1
(label) @begin
(label) @end
(const nomodify byte*) SCREEN = (byte*) 1024
(const word) STACK_BASE = (word) $103
(byte) idx loadstore zp[1]:4 1571.8095238095236
__stackcall (void()) main()
(label) main::@return
(const byte*) main::str[(byte) 6] = (byte*) "hello"
(const byte*) main::str1[(byte) 6] = (byte*) "world"
__stackcall (void()) print((byte*) print::str , (byte) print::spacing)
(label) print::@1
(label) print::@2
(label) print::@3
(label) print::@4
(label) print::@return
(const byte) print::OFFSET_STACK_SPACING = (byte) 0
(const byte) print::OFFSET_STACK_STR = (byte) 1
(byte) print::c
(byte) print::c#1 reg byte x 20002.0
(byte) print::c#2 reg byte x 7500.75
(byte) print::spacing
(byte) print::spacing#0 spacing zp[1]:5 918.3636363636363
(byte*) print::str
(byte*) print::str#0 str zp[2]:2 101.0
(byte*) print::str#1 str zp[2]:2 1833.6666666666665
(byte*) print::str#2 str zp[2]:2 3276.25
zp[2]:2 [ print::str#2 print::str#0 print::str#1 ]
reg byte x [ print::c#2 print::c#1 ]
zp[1]:4 [ idx ]
zp[1]:5 [ print::spacing#0 ]