Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: SirCmpwn on January 10, 2011, 12:17:24 am

Title: Parser Hook
Post by: SirCmpwn 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?
Title: Re: Parser Hook
Post by: Hot_Dog on January 10, 2011, 12:23:18 am
Any source code?  You might check register A as well
Title: Re: Parser Hook
Post by: SirCmpwn 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.
Title: Re: Parser Hook
Post by: Hot_Dog 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
Title: Re: Parser Hook
Post by: SirCmpwn 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.