What is the best way to learn Spin Code or Assembly Code
sam_sam_sam
Posts: 2,286
Hi Every One
July 3 was the last day at my job
Now·I have a lot more time to spend more time to learn something new
I have read the Propeller Manual and have been·reading·the Beginners Spin Code Examples and Assembly Code for Beginners
I see I have a lot to learn
Not all of it do·I understand·so it take some time for me·get enough of an
understanding to able to write a simple code
Which one should·I start with Spin or Assembly and why ???
I would like to get some ··s from the people on the Forum
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
Post Edited (sam_sam_sam) : 7/9/2008 11:48:13 AM GMT
July 3 was the last day at my job
Now·I have a lot more time to spend more time to learn something new
I have read the Propeller Manual and have been·reading·the Beginners Spin Code Examples and Assembly Code for Beginners
I see I have a lot to learn
Not all of it do·I understand·so it take some time for me·get enough of an
understanding to able to write a simple code
Which one should·I start with Spin or Assembly and why ???
I would like to get some ··s from the people on the Forum
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
Post Edited (sam_sam_sam) : 7/9/2008 11:48:13 AM GMT
Comments
·
I tend to be able to pick up assembler languages relatively quickly. Prop assembly took a bit longer. Key differences from a "normal" RISC-ish assembler that threw me for a bit are 1) it's a two operand, not three operand language so the first source argument gets overwritten and 2) the lack, or abundance (depending on how you look at it) of registers. Basically, the 2k of Hub RAM is treated as both RAM and registers, and can only be addressed as 32 bit "long"'s. Related to #1, you don't get register-indirect addressing in 2-operand assemblers (well, not any that I've seen). One other warning for Assembler programming:
mov foo, #0 ; Move the number 0 into "foo"
mov foo, 0 ; Move the contents of register/address 0 into "foo"
Confusing the second for the first is, well, confusing to debug later [noparse]:)[/noparse]
Thank You for your replies
I will work through the Propeller Education kit tutorials first and go from there
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
Post Edited (sam_sam_sam) : 7/9/2008 1:22:37 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A complex design is the sign of an inferior designer." - Jamie Hyneman, Myth Buster
DGSwaner
Do use FemtoBasic for some experimentation.· You can use it with a TV or VGA display and a PS/2 keyboard and you have access to the cog counters and all the I/O pins.· If you want, you can use the DongleBasic version with your PC as a console using the programming port.
Post Edited (Mike Green) : 7/9/2008 1:34:59 AM GMT
Thank You for all of your replies and ··s
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam