Author Topic: What am I doing wrong here?  (Read 27301 times)

0 Members and 1 Guest are viewing this topic.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
What am I doing wrong here?
« on: February 24, 2011, 10:18:53 am »
I'm doing something wrong here, because Axe keeps telling me that LM does not exist. And yes, I have made sure that LM does exist and is in RAM.

This is not the whole code. Just the relevant parts.
Code: [Select]
.READFAST
"[sub]L[sub]M"->Str0
GetCalc(Str0)->P
{P+5}[sup]rr[/sup]->D
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: What am I doing wrong here?
« Reply #1 on: February 24, 2011, 10:20:53 am »
Does Axe support the L token yet? If not you should mention that as a feature request.

Also, BBCode tags don't work in [code] blocks.

And welcome to Omnimaga, Freyaday!
« Last Edit: February 24, 2011, 10:21:41 am by Deep Thought »




Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: What am I doing wrong here?
« Reply #2 on: February 24, 2011, 10:26:22 am »
Now you tell me (About the sub thing). I think Axe does support the L token now, or at least according to the documentation I have. And thank you.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: What am I doing wrong here?
« Reply #3 on: February 24, 2011, 10:28:44 am »
Oh noes... I just have to say that there is a professor Dr. Frey at the university I go to... and tomorrow is Freyday... Other than that, have you tried L1? I think the reason for the problem is that the first token is not 5Dh in hex. I know in some of my programs that work with lists I need to have code that changes the first byte to 5Dh for it to be recognised.

(L1 and other list tokens have the 5Dh while named lists do not)

EDIT: Also, does this help:
.READFAST
"LM"->Str0
GetCalc(Str0)->P
{P+5}rr->D


EDIT in response to the edit in response to the former edit: Okay :D If you need to, you can quote this to view the BBCode I used (that is what it is called, right?).

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: What am I doing wrong here?
« Reply #4 on: February 24, 2011, 10:36:31 am »
If it's a problem with the first token, it's not that one. I looked at the the TI 83+ Developer's Guide and according to it, there is no difference between the way Named lists and L1-6 are stored. In the calc's eyes, L1-6 are user lists with the name of 1-6.

Edit in response to edit:
That's exactly what I'm doing now.
« Last Edit: February 24, 2011, 10:38:06 am by Freyaday »
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: What am I doing wrong here?
« Reply #5 on: February 24, 2011, 10:38:32 am »
If it's a problem with the first token, it's not that one. I looked at the the TI 83+ Developer's Guide and according to it, there is no difference between the way Named lists and L1-6 are stored. In the calc's eyes, L1-6 are user lists with the name of 1-6.

Yeah, but the L token (in Axe) apparently doesn't include ListObj. That would be a suggestion for Quigibo.




Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: What am I doing wrong here?
« Reply #6 on: February 24, 2011, 10:41:47 am »
Yeah, that is the problem, though :D The calc stores it the same way, so even though in the VAT the named list has a 5Dh as the start of the name, it doesn't automatically convert the L to 5Dh (which can be annoying). Instead of taking LM and storing the name as 015D4D00 it is stored as 01EB4D00 and yet it is stored with the former name.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: What am I doing wrong here?
« Reply #7 on: February 24, 2011, 10:43:49 am »
So what do I do?
Edit:
The Documentation.pdf I have explicitly states that "LABC" is the Name String for the List ABC.
« Last Edit: February 24, 2011, 10:46:51 am by Freyaday »
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: What am I doing wrong here?
« Reply #8 on: February 24, 2011, 10:46:15 am »
*cough* Magic :P *cough* Um, if you have tried L1 or some other token and that doesn't work, you cannot really do much at the moment. if it does work but you don't want to use a predefined list you can always go with a hacked token >_>

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: What am I doing wrong here?
« Reply #9 on: February 24, 2011, 10:48:51 am »
So where can I get this magical hatchet that hacks my tokens for me?
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: What am I doing wrong here?
« Reply #10 on: February 24, 2011, 10:49:47 am »
Well you could put the hex for ListObj in front of the string yourself.




Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: What am I doing wrong here?
« Reply #11 on: February 24, 2011, 10:51:58 am »
There are a few ways, but here are two programs on TICalc that work:
http://www.ticalc.org/archives/files/fileinfo/391/39138.html
http://www.ticalc.org/archives/files/fileinfo/425/42505.html

Also, if you have something like Celtic 3 or BatLib there are commands that will return the token if you input hex (like det(17,"5D4D will return the list name that you need).

EDIT: Yeah, Deep Thought's way is probably better/easier/more practical :D

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: What am I doing wrong here?
« Reply #12 on: February 24, 2011, 10:53:38 am »
My brain's a little scrambled from all the documentation non-following, so what would that look like in code, exactly?
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: What am I doing wrong here?
« Reply #13 on: February 24, 2011, 11:01:35 am »
Try this:

Code: (Axe) [Select]
[01]→GDB0
"ʟNAME"
[00]
GetCalc(GDB0)→P




Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: What am I doing wrong here?
« Reply #14 on: February 24, 2011, 02:52:48 pm »
Nope. Didn't work.:(
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!