Author Topic: YAPC (Yet another Parser Question)  (Read 3004 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
YAPC (Yet another Parser Question)
« on: December 15, 2010, 09:20:18 am »
How do I find out for sure where a string is located after being parsed?  For example, Text(1,1, "AAAAA")--how do I know where in RAM AAAAA is?  I can't help thinking it has to do with OP1, but I'm not positive  :(

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: YAPC (Yet another Parser Question)
« Reply #1 on: December 15, 2010, 05:52:59 pm »
I'm pretty sure it's in OP1, and it stores the arguments backwards. (i.e. It would look like "AAAAA" , 1 , 1)  I'm not sure how the string itself is stored though. :P

<Remember I'm an Asm n00b, so I may not be entirely correct. :P>

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: YAPC (Yet another Parser Question)
« Reply #2 on: December 15, 2010, 05:57:10 pm »
I'm pretty sure it's in OP1, and it stores the arguments backwards. (i.e. It would look like "AAAAA" , 1 , 1)  I'm not sure how the string itself is stored though. :P

<Remember I'm an Asm n00b, so I may not be entirely correct. :P>

Actually, for ASM people, the fully parsed string ends right before fpbase, so I would use cpdr to find the beginning of the string.  I was just hoping there was a way to find the EXACT beginning of the string without having to find it using cpdr.  OP1 always comes out to "04 24 00".

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: YAPC (Yet another Parser Question)
« Reply #3 on: December 15, 2010, 08:13:38 pm »
Okay, problem solved.  Something called "temporary variables," which I never heard of until now.


Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: YAPC (Yet another Parser Question)
« Reply #4 on: December 15, 2010, 09:55:08 pm »
Since the problem has been solved.....

shouldn't if have been YAPQ? O.O