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.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dim [2019/05/07 08:50] – neils | dim [2019/12/09 22:52] – neils | ||
---|---|---|---|
Line 3: | Line 3: | ||
Syntax: | Syntax: | ||
- | dim <any variable> | + | dim <any variable> |
- | The '' | + | The '' |
- | '' | + | Variables do not need to be predefined, but the '' |
- | dim x | + | dim myFastVar fast |
- | | + | |
- | print x | + | Read more about fast variables on the [[Variables|Variables]] page. |
- | rem -- the above will print an undefined number | + | |
+ | Since version 2.2, you can explicitly tell the compiler where in the memory the variable or array will reside, for example you can map the screen to an array as follows: | ||
+ | |||
+ | dim screen![1000] @ $0400 |