Is Assembly universal?
noob question, I've been reading about the different stamps and it appears that a lot of them, as well as other PIC's can be coded in assembly. my question is? If I learn assembly would I have to learn a different version for every platform that I use, or is assembly the same cross platform? Is a PC assembly language the same as a PIC or a Propeller? I know there will be additional code to handle the differences between the hardware but is a for next loop coded the same all the way around?
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
I think Assembler is much easier to code than C for example, I know exactly what each line of code does because it can only do that one thing. Working with C is a nightmare for me especially the OOP stuff with classes and whatnot. I prefer the simple stuff witch is kind of funny when it comes to assembler, for me it is much simpler to understand because it is at the core of the processor. Higher level languages I find hard to debug on simple 8 bit microcontroller. If you are very orginized you can set up macros that look like basic commands and all of your math and subroutines can be setup and called using macros to parse parameters.
I have to say though the SX assembler for me is a tougher nut because you can make some of the instructions overlap others for example and I really can't stand using characters like *!& and such for programming, I am finally getting use to the << but I prefer op codes with just letters. That's just my stubborn attitude though and is a reason I never understood higher math and physics I suppose.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Ok so my goal with wanting to learn assembly is so that when I start a project I can choose a stamp, pic, amtel or a combination of all of them, rather than use the same micro processor to do everything. I think I'm getting to the point of out growing the BS2. so I want to start my learning in another direction. I'm really interested in the Propeller, but I haven't dared make the switch yet. My interests lie in tele-robotics and autonomous robotics. would this be a good direction to move to? or do I just need to bite the bullet and learn some higher level languages?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Learning how to use different hardware built into the chips like timers and ADC's , comparators , serial interfaces on the assembler logic level is very interesting stuff to learn as well and will keep you occupied for many hours. You can download atmels AVR Studio and start coding for any of their chips and step through the code with the debugger, watch the port pins, timers and flags for each of the assembler op codes to first hand see exactly what happens in 20 millionths of a second per step. I love assembler.
Learning to make sense of the datasheets gets some getting use to. Setting up a timer for example can have you spanning 10 pages with information that you would swear someone deliberately randomized just to throw you off track, It's not like looking at the PBASIC help file and saying oh that makes sense because it's all on one page and shows a nice example of how to use it. Other than that I encourage you to give it a go as the software is free and the tools are pretty cheap as well.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
I am also think about·learn assembly·language
Which one would be easyer to learn
SX assembler language·or the Propeller language
I have both chips so which one should I do frist..... Any
.......And Why.........
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·
·
·
·
·
Sam