Assembly tips
WaldoDTD
Posts: 142
Does anyone have any tips for learning Assembly Language is there a nationwide class program thing?-hacker
Comments
Having said that, every micro-processor does share some commonalities with every other processor. They all move data from register to register, register to memory, they all have a 'stack' of some sort, etc. They'll all use different syntax (different commands) to do these things.
There are a couple of ways to go about this for PIC processors. One is to purchase the www.picant.com/c2c package. This will let you code in 'C' (or Pascal, or C++), compile the result into PIC assembly (which you can read), then single-step the PIC assembly under a simulator with simulated LED's, switches, etc.
Another approach would be to purchase the SK Tech Tool Kit from Parallax. With a full set of hardware for debugging, the SX/B language does in PBasic what the C2C package does in C.
That takes care of the PIC and SX processors. Note there are the Z80, 8051, ATMEL-AVR, and Hitachi (Renesas) H8 processors also currently in use. Not to mention the 6502, Motorola HC11, etc.
But I assume you want to start somewhere, and keep your expenses low, so the C2C or the SX route is what I would recommend.
reading this thread, my "pre-Assembly Language time" comes back to my mind. I had a KIM-1 board at that time with a 6502 microprocessor, and you could only type in programs in hex code via a keypad. Thus, you had to "hand-assemble" the programs before typing them in. I can only remember that the hex code for RTS (return from subroutine) was 0x60
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
I would recommend the SX Tech Kit because you can use SX/B and it shows you the basic code right beside the assembly code it generates.
I can post an example if you want one. Just let me know.
Bean.
The books that come with the SX-Tech toolkit are certainly some of the better books out there when it comes to teaching assembly for microcontrollers, but both still leave quite a bit to be desired as far as I am concerned. But between the two I was able to muddle through. Generally I find 3rd party books to be vastly more readable than the mfgrs. data sheets, but this is not the case with the Ubicom chips. I say this not to knock the books, but rather so say just how good the Ubicom documentation is. The datasheet for the SX28 is one of the most lucid and readable datasheets I've ever seen and I find the Ubicom SX Family User's Manual an excellent source for reference. (Both of these can be downloaded from the parallax web site.)
-p.
http://www.parallax.com/sx/index.asp is our home page for the SX.
http://www.parallax.com/sx/downloads.asp is the downloads.
Ken Gracey
Parallax, Inc.