will this put var1 into var2?
Robot Freak
Posts: 168
Hello,
Does the following put the value 8 into var2?
I don't think so, cause it isn't working
Any idea's how I could do something like this, without using SPIN or asm to copy the values?
Kind regards,
Robot Freak
Does the following put the value 8 into var2?
DAT var1 long 8 var2 long var1
I don't think so, cause it isn't working
Any idea's how I could do something like this, without using SPIN or asm to copy the values?
Kind regards,
Robot Freak
Comments
This points both var1 and var2 to the same address.... This is handy for aliasing variables
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
But not exactly what I mean.
I'll explain further.
I'd like to write a pattern like this:
Or in a different order if necessary. The values of var1..4 are not logical, so hard to write a long sequence when you've got to paste the real value each time.
Is there a way like (or similar) to what I mean?
Thanks,
Robot Freak
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I didn't think about using constants at all.
That answers my question, thanks Ken!