Author Topic: Help Request - ERROR INVALID TOKEN  (Read 10343 times)

0 Members and 2 Guests are viewing this topic.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Help Request - ERROR INVALID TOKEN
« Reply #15 on: December 04, 2013, 12:40:38 am »
For your "variables in L1", just store them in two bytes instead of one (using r) and you'll get the exact same results than with "regular variables" and with custom variables.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Help Request - ERROR INVALID TOKEN
« Reply #16 on: December 04, 2013, 10:46:00 am »
Quote
it's pretty strange then  :o cause if you use variable in L1 you have exactly the same thing than with  a normal var (it's just a memory location in all case). Can I see some problematic code please ?
It's untested, but this is the idea.
Code: [Select]
:Fill(L1,20,0)
:{L1}--
:Disp {L1}>Dec
:0->A
:A--
:Disp A>Dec

Quote
With one byte values in memory you have to use signed{} to convert 8 bit and 16 bit signed numbers.
Cool, I'm looking that up now.

Quote
For your "variables in L1", just store them in two bytes instead of one (using r) and you'll get the exact same results than with "regular variables" and with custom variables.
I didn't use ^r though.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: Help Request - ERROR INVALID TOKEN
« Reply #17 on: December 04, 2013, 10:53:32 am »
that understandable then, cause your reading and writing an one byte variable. With signed{ or the use of two bytes number, evrything work fine  :)
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html