Assembly Language for the Basic Stamp 2 Series?
Walts_Worker
Posts: 5
Hello... Maybe you'v received this question before...
I was wondering if there is an assembler that uses and accepts assembly language instructions for the Basic Stamp 2 series?· Also, is there an Assembly Language instruction set?· The biggest one... Can I have access to them?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am different, I knew that long ago.· I give everyone the trust and respect that's due to them as a human and possible friend.· They build or tear away at that by what they say and do.
Night`Wolf :--)
I was wondering if there is an assembler that uses and accepts assembly language instructions for the Basic Stamp 2 series?· Also, is there an Assembly Language instruction set?· The biggest one... Can I have access to them?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am different, I knew that long ago.· I give everyone the trust and respect that's due to them as a human and possible friend.· They build or tear away at that by what they say and do.
Night`Wolf :--)
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
The tuturial books are available, but you will have to consider purchasing at least Gunther's and I am not sure it Al Williams' is free or not.
NO it is not possible to direct program a BasicStamp with it, BUT you can easily program an SX-28 or SX-48 and this will cost far less than the BasicStamp and with speed and effiencies beyond the BasicStamp product line.
BUT, you need to buy an SX-Blitz or SX-Key Programing device to actually program the chip.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
Now, Parallax does make available the Ubicom SX-28 (and -48, and -54) processors, so you CAN program in assembly if you like, and they make available the SX/B IDE for the SX processors, which accept a PBasic like syntax and compiles into straight assembly, so you can use that.
Bottom line -- the PBasic language has been designed to be simple and easy to use, and reasonably efficient on its PIC processor, and very very reliable. There's lots of other assembly-only resources, and higher-level language compilers for the PIC processor -- but they all have a higher cost of entry.
Just as a matter of clarification, one additional point should probably be made. PBASIC is an interpretive language, and as such has no native code (machine executable instructions) per se, which can be directly executed on the underlying processors; be it a Microchip PIC processor, or a Ubicom SX processor.
As is the general case with many interpretive languages, p-codes (pseudo-operation codes), or "tokens" are constructed by the Compiler/Interpreter or Stamp IDE in this case, and these p-codes are eventually passed to the execution time interpreter engine, which acts on these p-codes in a pre-determined manner. There are many "sets" of extremely dynamic routines and sub-routines contained with the interpreter engine. These are essentially invoked by the content and sequence of the p-codes, and will reflect the operation of the program, as the programmer has planned it in his program.
Thus, it is the runtime engine which is actaully handling the execution of the commands, and the commands being executed are a sub-set (the p-codes) of the human readable source code which the programmer has written and compiled. Both the tokens and the runtime engine are proprietary products of Parallax.
As you can see from this process, at no stage is there any assembler language, or even directly executable binary code. Due to the nature of the process, in that it can be multi-step, transportable object codes are possible and they can be stored on disk and even distributed, for later execution. By this manner, field upgrades can be sent out, without the fear of disclosure of the original human readable source. It is indeed, the best of all worlds for an interpretive system!
I hope that adds some clarity to the process, and doesn't cause more confusion.
Regards,
Bruce Bates
Thanks again,
Walt's Worker
CSC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am different, I knew that long ago.· I give everyone the trust and respect that's due to them as a human and possible friend.· They build or tear away at that by what they say and do.
Night`Wolf :--)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
It is both damnedly easy and damnedly frustrating. For many things though it allows prototyping and development speeds that I could only DREAM OF when I wrote in assembler....
They're very different beasts.....
Here is the PIC 16F57 instruction set. http://ww1.microchip.com/downloads/en/DeviceDoc/41213D.pdf
Unfortunately, the OP is long gone; this is an old thread is from 2005. Shows how durable these posts are!
Please keep posting, this is a friendly and helpful forum.
The smaller micro-controllers tend to be a shorter story and easier to understand. Guenther's book for the SX chips was wonderful for me. I even have two copies (one really beaten up by use and a clean unused copy).
You might be able to buy that in out-of-print books, but you would also need the SX-Key for programing and some SX chips.
http://www.abebooks.co.uk/servlet/BookDetailsPL?bi=11096260035&searchurl=kn%3DPARALLAX%26amp%3Bsts%3Dt%26amp%3Btn%3DpROGRAMMING%2Bsx
http://www.sxlist.com/techref/ubicom/index.htm
I mention it first because it is a Parallax product though officially at End of Life.
===========
The second choice from Parallax is the Propeller chip and all the free material written for the Propeller's PASM.
http://forums.parallax.com/showthread.php/132966-Propeller-Assembly-for-beginners
http://propeller.wikispaces.com/Assembly+Programming
+++++++++++++++
If you want something other than Parallax products, like a PIC... you have to Google around for other choices. If you want to do AVR, like the Arduino.. it could be very demanding.