RE: A85: Custom menu handler
[Prev][Next][Index][Thread]
RE: A85: Custom menu handler
What I have found so far is that there is a structure at $820E that holds 5
pointers to the current menu's entries. What I need to know is where the
heck is the routine that retrieves the data from there, and uses the data
it points at. I want to know exactly how it works so I can find a way to
switch memory modes in the middle of an ASM program, cause I found a way to
make a shell run in split stack mode depending on what data is at where the
custom entry points to.
By the way, where is the input handler? I'd like to know where the
TI-BASIC calls are at, too. I know you know where they are Dines. I may
be able to get them to work, but I need to know where they are first.
----------
From: Dines Justesen[SMTP:dines@resnet.gatech.edu]
Sent: Wednesday, February 24, 1999 6:34 PM
To: assembly-85@lists.ticalc.org
Subject: Re: A85: Custom menu handler
Actually I have been looking at this a long time ago. There is however not
one function which handles the custom menu (as far as I remember). The menu
is called by the std. input handler when the custom key is pressed. The
actual menu is displayed by the function listed in TI-ROM.TXT, which also
handles the other menus. I think the input is handled by the normal input
handler, but I am not sure (you can always check).
Since I have not been working on this for a while it is kind of hard to
remember exactly how every thing works, but i think it is implemented
something like this:
All menus are discribed in he RAM or ROM using a special structure which
for
all elements in a menu defines what to show on the menu, and what to do
when
that element is selected (this includes sub menues). For almost all menues
this structure is stored in the ROM, the only exception is the custom menu.
The custom menu structure is stored in the RAM in the adresses given in
TI-RAM, and by modifing this structure the custom menu can be changed.
When a user presses a key the currently selected input handler detects this
and handles the keypress. If a menu key is presses the function calls a
function, which based on the key pressed finds the menu, initializes it and
displays it. If one of the F keys is pressed and a menu is show the
inputhandler uses the menu structure to find out what to do.
Most of the information you need should be available in documents such as
TI-RxM, but depending on what you want to do you might need to experiment a
bit, or have a look at a ROM dump. If you need any help, feel free to email
me.
Dines
----- Original Message -----
From: <CashOnly@aol.com>
To: <assembly-85@lists.ticalc.org>
Sent: Wednesday, February 24, 1999 6:48 PM
Subject: Re: A85: Custom menu handler
>
>> Does anybody know where the custom menu handler is in the ROM? If I
knew
>> where that was I could understand how the menuing system on the 85
works.
>
>I don't know if this is what you need, but in 85hack.txt it says the
custom
>menu data is at offset 08B1 in a .85B file. Couldn't you search through a
rom
>dump for refrences to that offset? I am going out on a major limb here-
Dines?
>
>-------
>NAME : Mikel Blanchard, of Macross Software
>WEB : http://macross.calc.org/
>EMAIL : cashonly@calc.org
>ICQ : 3033904 (CashOnly)
>
begin 600 WINMAIL.DAT
M>)\^(B\!`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$-@ 0`
M`@````(``@`!!) &`$@!```!````# ````,``# #````"P`/#@`````"`?\/
M`0```%<`````````@2L?I+ZC$!F=;@#=`0]4`@````!A<W-E;6)L>2TX-4!L
M:7-T<RYT:6-A;&,N;W)G`%--5% `87-S96UB;'DM.#5 ;&ES=',N=&EC86QC
M+F]R9P``'@`", $````%````4TU44 `````>``,P`0```!T```!A<W-E;6)L
M>2TX-4!L:7-T<RYT:6-A;&,N;W)G``````,`%0P!`````P#^#P8````>``$P
M`0```!\````G87-S96UB;'DM.#5 ;&ES=',N=&EC86QC+F]R9R<```(!"S !
M````(@```%--5% Z05-314U"3%DM.#5 3$E35%,N5$E#04Q#+D]21P````,`
M`#D`````"P! .@$````"`?8/`0````0````````#PD$!"( '`!@```!)4$TN
M36EC<F]S;V9T($UA:6PN3F]T90`Q" $$@ $`'0```%)%.B!!.#4Z($-U<W1O
M;2!M96YU(&AA;F1L97(`1PD!!8 #``X```#/!P(`& `2`#L`*P`#`&L!`2"
M`P`.````SP<"`!@`$@`[`"L``P!K`0$)@ $`(0```#!"1$8W0T%",39#0T0R
M,3%!13(V-#0T-34S-30P,# P``X'`0.0!@`D"@``$@````L`(P```````P`F
M```````+`"D```````,`-@``````0 `Y`*"E(H-B8+X!'@!P``$````=````
M4D4Z($$X-3H@0W5S=&]M(&UE;G4@:&%N9&QE<@`````"`7$``0```!8````!
MOF!B@Q&K?-\.S!81TJXF1$535 `````>`!X,`0````4```!33510`````!X`
M'PP!````&P```')I8VAA<F1L97=I<T!C961A<F-I='DN;F5T```#``806Z'!
M]P,`!Q#C"0``'@`($ $```!E````5TA!5$E(059%1D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