1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-06-29 09:29:31 +00:00
kickc/src/test/ref/memory-heap.sym
2021-04-30 17:26:46 +02:00

30 lines
842 B
Plaintext

constant byte* HEAP_TOP = (byte*) 40960
constant byte RADIX::BINARY = 2
constant byte RADIX::DECIMAL = $a
constant byte RADIX::HEXADECIMAL = $10
constant byte RADIX::OCTAL = 8
byte* heap_head
byte* heap_head#0 heap_head zp[2]:2 3.25
byte* heap_head#8 heap_head zp[2]:2 13.0
void main()
byte~ main::$4 reg byte a 22.0
byte* main::buf1
void* main::buf1#0 buf1 zp[2]:4 0.2222222222222222
byte* main::buf2
void* main::buf2#0 buf2 zp[2]:6 0.25
byte main::i
byte main::i#1 reg byte y 16.5
byte main::i#2 reg byte y 16.5
constant byte* main::screen = (byte*) 1024
void* malloc(word malloc::size)
byte* malloc::mem
byte* malloc::mem#0 mem zp[2]:6 4.4
void* malloc::return
word malloc::size
reg byte y [ main::i#2 main::i#1 ]
zp[2]:2 [ heap_head#8 heap_head#0 ]
zp[2]:4 [ main::buf1#0 ]
zp[2]:6 [ main::buf2#0 malloc::mem#0 ]
reg byte a [ main::$4 ]