[A83] Re: keyhooks


[Prev][Next][Index][Thread]

[A83] Re: keyhooks



theres 2 key hooks, 2 link hooks, cxmain hook, cxgraph hook, cxy= hook,
token hook, char hook, cursor hook, font hook, graph hooks, tracer hooks,
parser hooks, app change hooks, catalog hooks,  cx mode hooks, putaway
hooks, cxmain stat hooks... in other words, lots of different hooks.  they
all work a little differently.
  each hook is allocated 4 bytes in ram and a single flag.  When the flag is
set, the hook is activated and the OS at the appropriate times, reads the
first of the 4 bytes which is the page the hook routine is on, then the next
two bytes are the address on the page.  the last byte is unused most of the
time (only used during garabage collection).  I used this 4th byte as a sort
of flag area for symbolic but i think that was a major mistake.

some ram areas to look at before and after you install an app with hooks:

rawkey - 9b84
getkey - 9b88
token(localizer) - 9bc8


brandon sterner

----- Original Message -----
From: "Aaron Fineman" <amfineman@earthlink.net>
To: <assembly-83@lists.ticalc.org>
Sent: Sunday, June 01, 2003 2:07 PM
Subject: [A83] Re: keyhooks


> i think catalog help works with symbolic.
>
>
>
> At 01:45 AM 6/1/03, you wrote:
> >At 01:25 PM 6/1/03 -0400, you wrote:
> >>         I've noticed on TI apps with keyhooks, like catalog help, and
> >> the language localizers, when installed, they don't conflict with each
> >> other, or other keyhooks. does anyone know how they do this? do they
> >> check for other keyhooks and install themselves after? Is there any way
> >> other keyhooks could do this?
> >They only don't conflict with each other when they don't use the same
> >hooks. Catalog help uses a keyhook but langauge localizer uses some other
> >hook (don't know the name now) .
> >
> >Martin
> >
>
>
>




References: