pointer question
msrobots
Posts: 3,709
in Propeller 2
OK I can use ptra for example, to read hub ram indexed into my cog
is there a pointer usable in cog ram to do the same? Or do I need self modifying code to do that?
my goal would be something like
or something like that to index cogram in a loop
curious,
Mike
rdlong a, ptra++ rdlong b, ptra++ rdlong c, ptra++
is there a pointer usable in cog ram to do the same? Or do I need self modifying code to do that?
my goal would be something like
xxx:=@a rep #1,#3 rdlong xxx++, ptra++
or something like that to index cogram in a loop
curious,
Mike
Comments
ahh, thanks, that will work.
This pasm2 is a beast, but a friendly one. I already like it a lot.
edit:
I just needed altd and alts but works like a charm saved ~20 longs, cool
Enjoy!
Mike