2018-08-16 21:10:28 +00:00
|
|
|
|
2018-09-15 22:59:12 +00:00
|
|
|
~ main {
|
2018-10-01 18:05:32 +00:00
|
|
|
|
|
|
|
|
2018-10-01 20:23:16 +00:00
|
|
|
sub start() {
|
2018-10-01 18:05:32 +00:00
|
|
|
|
2018-10-01 23:52:08 +00:00
|
|
|
byte[10] barray1
|
|
|
|
byte[10] barray2 = 11
|
|
|
|
byte[10] barray3 = [1,2,3,4,5,6,7,8,9,255]
|
|
|
|
|
|
|
|
word[10] warray1
|
|
|
|
word[10] warray2 = 112233
|
2018-10-02 20:52:05 +00:00
|
|
|
word[10] warray3 = [1,2000,3000,4,5,6,7,8,9, 65535]
|
2018-10-01 23:52:08 +00:00
|
|
|
|
|
|
|
byte[4,5] mvar1
|
|
|
|
byte[4,5] mvar2 = 22
|
|
|
|
byte[2,3] mvar3 = [1,2,3,4,5,6]
|
|
|
|
|
|
|
|
float[3] farray1
|
|
|
|
float[3] farray2 = 33.44
|
|
|
|
float[3] farray2b = 33
|
|
|
|
float[3] farray3 = [1,2,3]
|
|
|
|
float[3] farray4 = [1,2,35566]
|
|
|
|
float[3] farray5 = [1,2.22334,3.1415]
|
|
|
|
|
2018-10-02 20:52:05 +00:00
|
|
|
str name = "irmen"
|
2018-10-01 23:52:08 +00:00
|
|
|
|
|
|
|
byte i
|
|
|
|
word w
|
|
|
|
|
2018-10-02 20:52:05 +00:00
|
|
|
_vm_write_str(name)
|
|
|
|
_vm_write_char('\n')
|
|
|
|
name[2] = '@'
|
|
|
|
_vm_write_str(name)
|
|
|
|
_vm_write_char('\n')
|
|
|
|
|
|
|
|
for i in barray3 {
|
|
|
|
_vm_write_num(i)
|
|
|
|
_vm_write_char('\n')
|
|
|
|
}
|
|
|
|
|
|
|
|
for w in warray3 {
|
|
|
|
_vm_write_num(w)
|
|
|
|
_vm_write_char('\n')
|
|
|
|
}
|
|
|
|
|
|
|
|
for i in name {
|
|
|
|
_vm_write_num(i)
|
|
|
|
_vm_write_char('\n')
|
|
|
|
}
|
2018-10-01 23:52:08 +00:00
|
|
|
|
2018-09-30 18:58:47 +00:00
|
|
|
return
|
2018-09-30 18:19:25 +00:00
|
|
|
|
2018-09-27 21:58:14 +00:00
|
|
|
}
|
2018-08-12 21:09:59 +00:00
|
|
|
}
|