(Comp.sys.handhelds) Item: 3737 by Simone.Rapisarda at wolf.sublink.org Author: [Simone Rapisarda] Subj: How to create MODES-menus Date: Mon Jul 22 1991 Here are some sysevals I found last night (the quoted questions are the ones I was asking myself since yesterday). > How can I toggle a system flag ? Try this one: 3EDA2 toggle system flag (1:Syst Bin) > How can I add a menu entry like the ones in the MODES menu > to a normal menu ? Choose from the list that follow the address of the menu entry you want, key it in as a binary then SYSEVAL. In level 1 will appear a list containing the menu entry, to show and use it just type 1 \->LIST TMENU. ---------------------------------------- 3BB46 MODES menu (already documented) ---------------------------------------- Addrs Specifications ---------------------------------------- 3E774 menu entry: STD 3E7B6 menu entry: FIX 3E7E9 menu entry: SCI 3E81C menu entry: ENG 3BB5F menu entry: SYM 3BBA6 menu entry: BEEP 3EA9E menu entry: STK 3EB1C menu entry: ARG 3EA4D menu entry: CMD 3BBFE menu entry: CNCT 3E84F menu entry: ML 3EBAF menu entry: CLK 3E88F menu entry: DEG 3E8D1 menu entry: RAD 3E908 menu entry: GRAD 3E94E menu entry: XYZ 3E98A menu entry: R\<)Z 3E9EE menu entry: R\<)\<) 3DB5B menu entry: HEX 3DB9D menu entry: DEC 3DBDF menu entry: OCT 3DC21 menu entry: BIN 3EB68 menu entry: FM, ---------------------------------------- > How can I built myself a menu entry that behaves like the ones in > the MODES menu ? If the function of that menu entry is to toggle only one system flag (like in SYM BEEP CNCT ML FM,) do the following: build a list composed by two programs, The first program must contain: 1) 3ECEE (External: append check-square when the flag is set) or 3ECD0 (External: append check-square when the flag is clear) 2) "LABEL" (String: used for the menu label) 3) (System Binary: the system-flag number) The second program must contain: 1) 3ED84 (External) 2) (System Binary: the system-flag number, same as before) Now the list contain the menu entry so type 1 \->LIST TMENU to show and use it: notice that you can toggle a flag if you have the command line too! > Yes, it's all beautiful but I have to use up all my CST menu to > do what you told. Why ?! Just create a dir-like menu entry in your CST menu and so all this stuff will take only one label and it will be usable also when there is the command line. > Are you joking ? No, just build a list composed by two programs, the first program must contain: 1) 3ED6B (External) 2) "LABEL" (String: used for the dir-like menu label) The second program must contain: 1) 40788 (External: null program) 2) { {...}...{...} } (List: the complete menu) 3) 40F86 (External) 4) 1A086 (External) You can also do it in another way: just assign this second program to a key. Another thing: if you want only a dir-like menu entry you can use the first program as a normal menu label. N.B. Everywhere you see 'program' you must read 'program w/o the user program delimiters (\<< and \>>)'. So to build these programs use OUT\-> and \->PRG from the great HACKIT library. During this trip inside the menus my 48 never asked me if I wanted her to try to recover memory. But maybe your 48 will. So be ready and archive your memory! I take no responsibility for all the odd things that can happen to your 48; if you don't like danger just don't do it! I warned you! If you have some questions or comments about what I wrote, I will be glad to answer. If you like what I found I really would like to know! Finally I would like to thank those who started this funny game: HP, Bill, Rick, Derek, Jan, Jim, Paul, Jake and many many others... Happy MENUing! RAP -- WolfNet BBS Pisa (Italy) Tel. +39-50-589050 300-14.4K Baud Matrix 2:332/602.0 Simone Rapisarda - via FidoNet node 2:33/800 UUCP: ...!gear!wolf!Simone.Rapisarda ARPA: Simone.Rapisarda@wolf.sublink.org