1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-29 03:56:15 +00:00
kickc/src/test/ref/struct-ptr-23.sym
2021-04-30 17:26:46 +02:00

32 lines
1.0 KiB
Plaintext

constant byte OFFSET_STRUCT_PERSON_INITIALS = 1
constant byte* const SCREEN = (byte*) 1024
constant byte SIZEOF_STRUCT_PERSON = 5
byte idx
byte idx#16 reg byte x 8.0
byte idx#17 reg byte x 3.25
byte idx#3 reg byte x 16.5
byte idx#4 reg byte x 16.5
byte idx#5 reg byte x 11.0
byte idx#6 reg byte x 11.0
byte idx#7 reg byte x 16.5
void main()
struct Person* main::person
constant struct Person* main::person#1 person = persons+SIZEOF_STRUCT_PERSON
constant struct Person* persons[] = { { id: 1, initials: "jgr" }, { id: 8, initials: "hbg" } }
void print_person(struct Person* print_person::person)
byte~ print_person::$0 reg byte a 22.0
byte*~ print_person::$3 zp[2]:4 22.0
byte*~ print_person::$4 zp[2]:2 22.0
struct Person* print_person::person
struct Person* print_person::person#2 person zp[2]:2
zp[2]:2 [ print_person::person#2 print_person::$4 ]
reg byte x [ idx#16 idx#17 ]
reg byte a [ print_person::$0 ]
reg byte x [ idx#3 ]
reg byte x [ idx#4 ]
reg byte x [ idx#5 ]
zp[2]:4 [ print_person::$3 ]
reg byte x [ idx#6 ]
reg byte x [ idx#7 ]