1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-16 21:07:56 +00:00
kickc/src/test/ref/array-16bit-lookup.sym

35 lines
1.0 KiB
Plaintext
Raw Normal View History

(label) @1
(label) @begin
(label) @end
2019-12-21 09:38:44 +00:00
(const word*) arr16[(number) $80] = { fill( $80, 0) }
(word()) getValue((word) getValue::index)
(byte~) getValue::$0 reg byte a 2002.0
(byte~) getValue::$1 reg byte a 2002.0
(byte~) getValue::$2 reg byte a 1001.0
(byte~) getValue::$3 reg byte a 2002.0
(label) getValue::@return
(word) getValue::index
(word) getValue::index#0 index zp[2]:2 1102.0
(word) getValue::return
(word) getValue::return#0 return zp[2]:4 202.0
(word) getValue::return#1 return zp[2]:4 367.33333333333337
(void()) main()
(word~) main::$0 zp[2]:4 101.0
(byte~) main::$2 reg byte a 202.0
(label) main::@1
(label) main::@2
(label) main::@return
(const word*) main::SCREEN = (word*) 1024
(byte) main::idx
(byte) main::idx#1 reg byte x 151.5
(byte) main::idx#2 reg byte x 57.714285714285715
reg byte x [ main::idx#2 main::idx#1 ]
2019-10-12 09:40:36 +00:00
zp[2]:2 [ getValue::index#0 ]
zp[2]:4 [ getValue::return#0 main::$0 getValue::return#1 ]
reg byte a [ main::$2 ]
reg byte a [ getValue::$0 ]
reg byte a [ getValue::$3 ]
reg byte a [ getValue::$1 ]
reg byte a [ getValue::$2 ]