EasyManua.ls Logo

SwissMicros DM42 - Accessing Virtual Variables

SwissMicros DM42
29 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
00 { 49-Byte Prgm }
01LBL "STOPW"
02 TIME
03 HR
04 STO 02
05 "RefLCD"
06 ASTO 03
07 CLX
08 STO IND 03 @ Disable refreshing
09 FIX 02
10LBL 00
11 TIME
12 HR
13 RCL- 02
14 3600
15 ×
16 VIEW ST X
17 -8
18 STO IND 03 @ refresh the message area now
19 GTO 00
Accessing virtual variables
Attempting to STO a value in a read-only virtual variable has no effect, so it is not possible to create
these variables in the variables table within Free42. Because of this it is a bit awkward to RCL and
STO them directly. We recommend adding a reference to the virtual variables that you will need in
your program in order to access the variables indirectly later on. Something like this:
"GrMod"
ASTO 10
"ResX"
ASTO 11
"ResY"
ASTO 12
Where needed you can then simply address the virtual variables this way:
3
STO IND 10
"Pixels on "
"screen: "
RCL IND 11
RCLx IND 12
ARCL ST X
AVIEW
STOP
5

Related product manuals