RUN command for BS2SX --another question
Archiver
Posts: 46,084
i did this to try and run to another program and i get errors of "download
failed" I called my first program "program0.bsx" and my second program
"program4.bsx"
THIS IS IN PROGRAM1.BSX:
'{$stamp bs2sx,program4.bsx}
x var nib
y var nib
z var nib
a var byte
z=5
x=2
y=3
put 2,x
put 3,y
get 63,a
debug "in program",dec a,cr
pause 1000
run 4
THIS IS IN PROGRAM4.BSX:
'{$stamp bs2sx}
x var nib
y var nib
z var nib
a var byte
get 2,x
get 3,y
get 63,a
x=x+y
debug "program#",dec a,cr
debug dec x,cr
pause 1000
Shouldnt this debug the first program number then jump to program 4 add x
and y ---then debug this program number then debug what is in x?
now what am i doing wrong????????????
______________________________________________________
failed" I called my first program "program0.bsx" and my second program
"program4.bsx"
THIS IS IN PROGRAM1.BSX:
'{$stamp bs2sx,program4.bsx}
x var nib
y var nib
z var nib
a var byte
z=5
x=2
y=3
put 2,x
put 3,y
get 63,a
debug "in program",dec a,cr
pause 1000
run 4
THIS IS IN PROGRAM4.BSX:
'{$stamp bs2sx}
x var nib
y var nib
z var nib
a var byte
get 2,x
get 3,y
get 63,a
x=x+y
debug "program#",dec a,cr
debug dec x,cr
pause 1000
Shouldnt this debug the first program number then jump to program 4 add x
and y ---then debug this program number then debug what is in x?
now what am i doing wrong????????????
______________________________________________________
Comments
>
> i did this to try and run to another program and i get errors of "download
> failed" I called my first program "program0.bsx" and my second program
> "program4.bsx" ^^^^^^^^^^^
>
> THIS IS IN PROGRAM1.BSX:
^^^^^^^^^^^
Steve, I hope these are just typos!
--
Doyle Whisenant
mechanic@s...
http://mechanic.webjump.com