rdlong command???
krazyideas
Posts: 119
Hello
I want to read a varuble that I have in spin code and use it in a assembly program.
say I have the fallowing
Var
··· long pluse
Pub
·(((pluse + 10) / 5)*15)
Dat
#1························ rdlong UP,·· pluse
UP long
The problem is whit the rdlong UP, pluse but I don't know what to do.
any help would be great
Thanks
I want to read a varuble that I have in spin code and use it in a assembly program.
say I have the fallowing
Var
··· long pluse
Pub
·(((pluse + 10) / 5)*15)
Dat
#1························ rdlong UP,·· pluse
UP long
The problem is whit the rdlong UP, pluse but I don't know what to do.
any help would be great
Thanks
Comments
Make sure your pointer variables are within 497 longs after the start of your PASM code so they will be copied into the cog with the code. Always initialize your pointers BEFORE doing cognew() because they get copied into the cog. When you call cognew() on PASM code, it begins with the address at the beginning of your PASM code (@pasmstart) and copies the subsequent 497 longs from HUB to the cog memory, bringing your pointer (pluse_ptr) along for the ride! I find this is easier than dealing with PAR.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup
Post Edited (Ken Peterson) : 11/19/2008 5:17:25 PM GMT
http://forums.parallax.com/forums/default.aspx?f=25&m=209237
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"I have always wished that my computer would be as easy to use as my telephone.· My wish has come true.· I no longer know how to use my telephone."
- Bjarne Stroustrup