1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-06-29 09:29:31 +00:00
kickc/src/test/ref/struct-ptr-20.sym

18 lines
681 B
Plaintext

const byte OFFSET_STRUCT_SETTING_ID = 1
const nomodify byte* SCREEN = (byte*) 1024
const byte SIZEOF_STRUCT_SETTING = 2
void main()
byte main::idx
byte main::idx#1 reg byte x 22.0
byte main::idx#2 reg byte x 11.0
byte main::idx#5 reg byte x 16.5
byte main::len
const byte main::len#0 len = 3*SIZEOF_STRUCT_SETTING/SIZEOF_STRUCT_SETTING
struct Setting* main::setting
struct Setting* main::setting#1 setting zp[2]:2 22.0
struct Setting* main::setting#2 setting zp[2]:2 5.5
const to_nomodify struct Setting* settings[] = { { off: 0, id: 'a' }, { off: 1, id: 'b' }, { off: 0, id: 'c' } }
zp[2]:2 [ main::setting#2 main::setting#1 ]
reg byte x [ main::idx#2 main::idx#5 main::idx#1 ]