RUN command for BS2SX --please help
In a message dated 3/11/00 1:53:14 PM Eastern Standard Time,
sznavor23@h... writes:
<< copied this right from the BS2SX 8 page book---what do i save the
programs
to so the run command works? i saved my first program as "program #0.bsx"
and the second program as "program #4.bsx" and it doesnt work! here is how
i typed it in--directly from the books example where (program #0) is
"program #0.bsx" and (program #4) is "program #4.bsx" someone help me fix
what i am doing wrong!!!!!!!
'program #0 >> ...
First, I'm not sure you can have a blank and # in the program name - it may
be OK, but if you look at the example, the names are 'program0' and
'program6'. This may or may not be related to your problem
Second, have you loaded both programs into the editor at once? They both have
to be there when you do the download. Also, be sure you have specified that
you are working with the BS2SX, not BS2. There's a menu pick that sets that
choice I believe.
Third, be sure when you do the download, that both programs are downloading -
you should see a message when each one is sent to the BS2SX. Select the
option to load all programs, not just the changed ones, to be safe.
Fourth, I would put an end on the second program or else have it run program
0 again. With the latter option, it should go back and forth from one to the
other.
At one time there was a bug having to do with debug statements in multiple
programs , but I think it had to do with causing errors during download.
Since you didn't indicate you got any error messages, that's probably not
your problem.
Chuck
sznavor23@h... writes:
<< copied this right from the BS2SX 8 page book---what do i save the
programs
to so the run command works? i saved my first program as "program #0.bsx"
and the second program as "program #4.bsx" and it doesnt work! here is how
i typed it in--directly from the books example where (program #0) is
"program #0.bsx" and (program #4) is "program #4.bsx" someone help me fix
what i am doing wrong!!!!!!!
'program #0 >> ...
First, I'm not sure you can have a blank and # in the program name - it may
be OK, but if you look at the example, the names are 'program0' and
'program6'. This may or may not be related to your problem
Second, have you loaded both programs into the editor at once? They both have
to be there when you do the download. Also, be sure you have specified that
you are working with the BS2SX, not BS2. There's a menu pick that sets that
choice I believe.
Third, be sure when you do the download, that both programs are downloading -
you should see a message when each one is sent to the BS2SX. Select the
option to load all programs, not just the changed ones, to be safe.
Fourth, I would put an end on the second program or else have it run program
0 again. With the latter option, it should go back and forth from one to the
other.
At one time there was a bug having to do with debug statements in multiple
programs , but I think it had to do with causing errors during download.
Since you didn't indicate you got any error messages, that's probably not
your problem.
Chuck
Comments
to so the run command works? i saved my first program as "program #0.bsx"
and the second program as "program #4.bsx" and it doesnt work! here is how
i typed it in--directly from the books example where (program #0) is
"program #0.bsx" and (program #4) is "program #4.bsx" someone help me fix
what i am doing wrong!!!!!!!
'program #0
rhino var word
head var rhino.highbyte
tail var rhino.lowbyte
x var byte
rhino=45678
put 2,head
put 3,tail
get 63,x
debug "you are in program #",dec x,cr
debug "rhino=",dec rhino,cr
pause 1000
run 4
'program #4
monkey var word
head var monkey.highbyte
tail var monkey.lowbyte
x var byte
get 2,head
get 3,tail
get 63,x
debug "you are in program #",dec x,cr
debug "monkey=",dec monkey,cr
debug "rhino and monkey are=?"
pause 1000
______________________________________________________
Which version of the BS2SX software are you using? The procedure is
different for windows or for DOS. It is confusing I know. The thin BS2SX
documentation describes only the programming for the DOS version of the
software, STAMP2SX.EXE, where you have to use ALT-n to switch between the
target banks. The procedures for using the BS2SX with the Windows
software, STAMP2W.EXE, are described only in the thin documentation for the
v1.091 beta.
Here are instructions for either version. These instructions are adapted
from from some additonal examples of using the BS2SX I have posted on my
web page at
http://www.emesystems.com/BS2SX.htm#example
DOS, programming using STAMP2SX.EXE
Enter the first program, and press ALT-0 to target bank 0, then press ALT-R
to send the program to bank0 of the BS2SX and run it. It won't get very
far, only the first program in bank 0, because you haven't yet sent the
second program. Save the first program under the name, "program0.bsx".
Now, type in the program for bank4, by modifying the first program, and
press ALT-4 to target it to bank4, and then press ALT-R to send it and run
it. You should now see the whole thing run, both bank 0 and bank 4.
Pressing the reset button should run them both again. Name the bank 4
program, "program4.bsx". It really doesn't matter what you name the files,
so long as they follow the standard DOS 8.3 convention (i.e., program4.bsx,
not program #4.bsx). You can name them with an extension other than bsx,
but if you do so, remember that the editor ALT-L command will only list in
the files display those that have the bsx extension.
WINDOWS, using STAMP2W.EXE version 1.091 or later.
In the prefernces/editor operation, tell it you will be editing a BS2SX
program by making that choice on the pull-down menu. Also tell it to use
either the "all" or the "modified" option for program download. Enter the
first program in one window, but at the top of the program, add one
additional line:
' {STAMP BS2SX,program1.bsx,program2.bsx,program3.bsx,program4.bsx}
Those are curly braces around the text, and the line does in fact start
with an apostophe. This line is a directive that will link together the
files in your "project". Save this first program as "program0.bsx". Now
create 4 more untitled windows by selecting file/new four times. Save them
in turn as "program1.bsx", "program2.bsx", "program3.bsx", and
"program4.bsx". Now enter your program for bank 4 under in the program 4
window. Furthermore, in the windows for programs 1, 2, and 3, which you
are not really using, put at least one useless dummy instruction, such as,
DATA 0
The editor will not let you tokenize an empty file. Now, save and close
all the windows. Chose file/open and select program0.bsx from the file
list. If you have done everything correctly, all of the program windows
associated with this project will open up all at once. There should be 5
windows altogether on the screen. You have a "project". When you press
CTRL-R or choose RUN from the menu, all five of the programs will be sent
into the BS2SX, and will run from the start of program 0. When you choose
to quit or to close one of the programs, the editor will ask if you want to
close all of the windows, because they are now part of a unified project.
If you want to create a program for bank 4, you first have to create
programs for banks 0, 1, 2 and 3, even if some of them do not contain any
real program.
I hope that helps.
-- Tracy Allen
Electronically Monitored Ecosystems
http://www.emesystems.com
original message---->
"Steve Znavor" <sznavor23@h...> wrote:
i copied this right from the BS2SX 8 page book---what do i save the
programs
to so the run command works? i saved my first program as "program #0.bsx"
and the second program as "program #4.bsx" and it doesnt work! here is how
i typed it in--directly from the books example where (program #0) is
"program #0.bsx" and (program #4) is "program #4.bsx" someone help me fix
what i am doing wrong!!!!!!!
'program #0
rhino var word
head var rhino.highbyte
tail var rhino.lowbyte
x var byte
rhino=45678
put 2,head
put 3,tail
get 63,x
debug "you are in program #",dec x,cr
debug "rhino=",dec rhino,cr
pause 1000
run 4
'program #4
monkey var word
head var monkey.highbyte
tail var monkey.lowbyte
x var byte
get 2,head
get 3,tail
get 63,x
debug "you are in program #",dec x,cr
debug "monkey=",dec monkey,cr
debug "rhino and monkey are=?"
pause 1000
' {$STAMP BS2SX,program4.bsx}
this tells the system that you have a project using 2 programs, it
will then automatically load/modify each program as required.
hope this helps
jon
--- In basicstamps@egroups.com, CDavis2@a... wrote:
> In a message dated 3/11/00 1:53:14 PM Eastern Standard Time,
> sznavor23@h... writes:
>
> << copied this right from the BS2SX 8 page book---what do i save
the
> programs
> to so the run command works? i saved my first program as "program
#0.bsx"
> and the second program as "program #4.bsx" and it doesnt work!
here is how
> i typed it in--directly from the books example where (program #0)
is
> "program #0.bsx" and (program #4) is "program #4.bsx" someone
help me fix
> what i am doing wrong!!!!!!!
>
> 'program #0 >> ...
>
> First, I'm not sure you can have a blank and # in the program name -
it may
> be OK, but if you look at the example, the names are 'program0' and
> 'program6'. This may or may not be related to your problem
>
> Second, have you loaded both programs into the editor at once? They
both have
> to be there when you do the download. Also, be sure you have
specified that
> you are working with the BS2SX, not BS2. There's a menu pick that
sets that
> choice I believe.
>
> Third, be sure when you do the download, that both programs are
downloading -
> you should see a message when each one is sent to the BS2SX. Select
the
> option to load all programs, not just the changed ones, to be safe.
>
> Fourth, I would put an end on the second program or else have it
run program
> 0 again. With the latter option, it should go back and forth from
one to the
> other.
>
> At one time there was a bug having to do with debug statements in
multiple
> programs , but I think it had to do with causing errors during
download.
> Since you didn't indicate you got any error messages, that's
probably not
> your problem.
>
> Chuck