propeller assm code examples
ratronic
Posts: 1,451
I have been looking for any free download showing ·proper syntax and usage. I have·a propeller manual that shows assemby codes, but·not much syntax and usage, plenty of that with spin though. I have used the propeller forum , but·the examples·I see have some help. I would like to find a tutorial showing proper syntax and usage examples for all assembly instructions·in one place. Can somebody point me in the right direction??···· Thanks for any help Dave!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D RatFix it if ain't broke said...
(replace this text with what was said)
Comments
The libraries are the most comprehensive examples of assembly code, the general syntax is:
items in bracket are optional, label is a name place holder to refer to a location, conditions specify·the set of conditions for the instruction to be executed, ASM·dest, source is the instruction followed by the destination and source for the instruction,·affects·specifies which flags should be affected by the result of the instruction and comments are comments.
Assembly code is executed by starting it up in a cog using cognew or coginit.
Each of these individual elements are explained more fully in the user manual.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
If you have specific questions, feel free to post them.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ D Rat