Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
data [2019/05/07 08:05] – created neils | data [2019/05/07 08:12] – neils | ||
---|---|---|---|
Line 3: | Line 3: | ||
Syntax: | Syntax: | ||
- | data varname[] = < | + | |
Or in combination with the [[INCBIN|INCBIN]] directive: | Or in combination with the [[INCBIN|INCBIN]] directive: | ||
- | data varname[] = incbin " | + | data varname![] = incbin " |
- | The '' | + | The '' |
- | rem ** this will print: 9 | + | If the right-hand side of the assignment is an '' |
- | data squares[] = 0, 1, 4, 9, 16 | + | |
- | print squares[3] | + | Example with value list: |
+ | |||
+ | | ||
+ | data squares[] = 0, 1, 4, 9, 16 | ||
+ | print squares[3] | ||
+ | |||
+ | Example with '' | ||
+ | |||
+ | rem -- load a sprite | ||
+ | data sprite![] = incbin " | ||
'' | '' |