As I am constantly frustrated at the inaccessibility of the string manipulation commands, particularly sub(, length(, and inString( when writing TI Basic programs, I wanted to see if it was possible to modify a menu to have these commands and more. Turns out it is! I found this page on WikiTI, but I need a little help understanding the hook works and how to implement it.
I suppose I should mention that I have very limited experience writing ez80 asm.
I know I need a program to install the hook, but I don't know where to put the hook code (I've seen a deleted appvar suggested). If I am not mistaken, I can use the LDIR instruction (or maybe one of its variants) to copy the hook code from the source program to wherever it gets run from when a certain menu is opened.
I am also unsure what the hook code should look like. Should it just be one of those example tables, or do I have to write some additional code to handle when A is all those values.
As of this posting, I am currently reading other posts about hooks, hopefully I can find more info there, but I'd still appreciate any help.
Edit: I found this which adds a string menu to the vars menu, but I'd like to replace the [2nd] [vars] menu and not be dependant on Cap'n Hook (nice name btw)
I suppose I should mention that I have very limited experience writing ez80 asm.
I know I need a program to install the hook, but I don't know where to put the hook code (I've seen a deleted appvar suggested). If I am not mistaken, I can use the LDIR instruction (or maybe one of its variants) to copy the hook code from the source program to wherever it gets run from when a certain menu is opened.
I am also unsure what the hook code should look like. Should it just be one of those example tables, or do I have to write some additional code to handle when A is all those values.
As of this posting, I am currently reading other posts about hooks, hopefully I can find more info there, but I'd still appreciate any help.
Edit: I found this which adds a string menu to the vars menu, but I'd like to replace the [2nd] [vars] menu and not be dependant on Cap'n Hook (nice name btw)