Shop OBEX P1 Docs P2 Docs Learn Events
PASM Question WRLUT — Parallax Forums

PASM Question WRLUT

Hi

working with the TIA assembler for P2. I originally had:

   mov r3,#1
   wrlut r3,#tosetL
   ret

Which did not work. (I want to write the contents of r3 into the lut at the position that is defined by the constant tosetL.)

Finally this works as intended:

   mov r2,#tosetL
   mov r3,#1
   wrlut r3,r2
   ret

Is this just a limitation/bug of the assembler or have I missed something about wrlut?
Thanks!

Comments

Sign In or Register to comment.