D/S PASM
John Abshier
Posts: 1,116
in Propeller 2
With the Prop 1, I was a Spin programmer who feasted upon the bounty of skilled PASM programmers. Unfortunately, the Prop 2 ecosystem is not there yet and I have dived into PASM.
Is the following correct? If D/S is an address (variable name) then that address points to the value used. If #D/S then the value entered (#$FF or #20) is used. I have no clue what ## means.
Thanks,
John Abshier
Is the following correct? If D/S is an address (variable name) then that address points to the value used. If #D/S then the value entered (#$FF or #20) is used. I have no clue what ## means.
Thanks,
John Abshier
Comments
S can be #0..$FF, ##0..$FFFFF, or a PTRA/PTRB expression.
P2 supports Hub execution so there are ways to refer S and D to a larger Hub address space, for example in fastspin where inline asm can use function local vatiables for S and D. There are also special instructions for reading and modifying S and D without affecting the rest of the instruction for self-modifying code.
If you'd rather not learn assembly...