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.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
dim [2019/07/29 09:19] neilsdim [2019/12/10 08:02] neils
Line 3: Line 3:
 Syntax: Syntax:
  
-  dim <any variable>[<byte or int x_dim> [, <byte or int y_dim>]] [fast]+  dim <any variable>[<byte or int x_dim> [, <byte or int y_dim>]] [fast | @<address>]
  
 The ''DIM'' directive defines a variable or an array. See the [[arrays|Arrays]] page for more information about arrays. The ''DIM'' directive defines a variable or an array. See the [[arrays|Arrays]] page for more information about arrays.
Line 12: Line 12:
      
 Read more about fast variables on the [[Variables|Variables]] page. Read more about fast variables on the [[Variables|Variables]] page.
 +
 +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
 +