Author Topic: Parser Hook  (Read 2728 times)

0 Members and 1 Guest are viewing this topic.

SirCmpwn

  • Guest
Parser Hook
« on: January 10, 2011, 12:17:24 am »
Hello,
I've been pulling my hair out over this, but I can't seem to figure it out.  For some reason, when the parser hook fires for me, the value in BC is always the same, and doesn't represent the token being parsed.  Does anyone know why this might be happening?

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Parser Hook
« Reply #1 on: January 10, 2011, 12:23:18 am »
Any source code?  You might check register A as well

SirCmpwn

  • Guest
Re: Parser Hook
« Reply #2 on: January 10, 2011, 12:24:19 am »
Register A contains the hook state, which works fine.  The source code is a mix of assembly and Axe, and would be hard to understand if I posted.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Parser Hook
« Reply #3 on: January 10, 2011, 12:25:44 am »
Just remember, you should get different values for BC if the hook state is not 0.  Other than that, I don't know what else could be wrong

EDIT: So what I'm saying is, this may be something unusual :D
« Last Edit: January 10, 2011, 12:26:39 am by Hot_Dog »

SirCmpwn

  • Guest
Re: Parser Hook
« Reply #4 on: January 10, 2011, 12:26:49 am »
Yeah, I'm properly handling the hook state, but for some reason, it isn't working.  Let me try again and remove the hook state protection.