Hi all, only recently did some basic projects with picaxes and do try to understand the VSM simulator but do have some issues with it.
None of the programs that I do get to “run” on the VSM will not go “step by step”
unless I put breakpoints on each line.
It’s not needed on the samples, where do I go wrong?
On each Pause I do have to click (pause x/100*2) to get to the next line or hit “run”
to get to the next breakpoint.
The same applies to sample programs.
Didn’t see this documented anywhere, took me a while to figure it out.
Also a program that runs on a Picaxe simulator will not work on VSM
On line - let Pins = %00000000 did try let Pins = %00000000 +0
as suggested on a different thread for Let Dirs=%.... but with no result.
Any work around it?
Cheers, Steve
None of the programs that I do get to “run” on the VSM will not go “step by step”
unless I put breakpoints on each line.
It’s not needed on the samples, where do I go wrong?
On each Pause I do have to click (pause x/100*2) to get to the next line or hit “run”
to get to the next breakpoint.
The same applies to sample programs.
Didn’t see this documented anywhere, took me a while to figure it out.
Also a program that runs on a Picaxe simulator will not work on VSM
On line - let Pins = %00000000 did try let Pins = %00000000 +0
as suggested on a different thread for Let Dirs=%.... but with no result.
Any work around it?
Code:
Start:
let Pins = %00000000
Check1:
let b0 = pins & %00001111
if pins = 0 then Check2
gosub Sendit1
Check2:
let b2 = pins & %11110000
b2 = b2 / 16
if pins = 0 then Start
gosub Sendit2
pause 3000
goto Check1
Sendit1:
for b1 = 1 to b0
high 0
pause 200
low 0
pause 500
next b1
pause 1000
return
Sendit2:
for b3 = 1 to b2
high 1
pause 200
low 1
pause 500
next b3
pause 1000
return
Last edited: