Is There Something Like a P2 PASM Tutorial?
Christof Eb.
Posts: 1,214
in Propeller 2
Hi,
at the moment I am struggling with some assembler code. One problem, that I have, is that I do not really understand the P2 PASM assembler syntax. For example ## or #. Is there a document, explaining such things?
I am working with TIA https://forums.parallax.com/discussion/171254/tia-an-interactive-inline-assembler-for-taqoz/p1
At the moment I think, that it follows the "normal" syntax.
I do know:
https://forums.parallax.com/discussion/173376/taqoz-reloaded-ver-2-8-writing-inline-assembly-code-notes - Excellent !!!
https://docs.google.com/spreadsheets/d/1_vJk-Ad569UMwgXTKTdfJkHYHpc1rZwxB-DcIiAZNdk/edit#gid=0
https://docs.google.com/document/d/1gn6oaT5Ib7CytvlZHacmrSbVBJsD9t_-kmvjd7nUR6o/edit#
Thanks in advance for some hints!
Comments
#
means "immediate addressing" mode. Which means the ALU's data value (operand) is supplied from program code. With RISC instructions, that usually means it's part of the instruction itself. As such, on the Prop2, it is limited to 9-bit size.##
is Pasm2's extended, 32-bit, version of immediate addressing. It is given a distinct syntax because it causes the assembler to generate extra instructions in the assembled program. Namely AUGD and AUGS, depending on which operand is being extended to 32-bit.It was originally documented in the Pnut zip in a file called "instructions.txt". The info has since been added near the end of the silicon google doc:
I don't think there is... There is a P1 assembly tutorial though...
http://www.rayslogic.com/propeller/Programming/DeSilvaAssemblyTutorial.pdf
Not the same, but very similar. Mostly, the P2 adds a bunch of extra instructions...
Thank you evanh and Rayman!