* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: 83/84 hooks - requests / ideas  (Read 524 times)

0 Members and 1 Guest are viewing this topic.

Offline E37

  • Full User
  • Join Date: Jul 2016
  • Location: Lihilzard Empire
  • Posts: 229
  • Post Rating Ratio: +10/-0
  • I own 2 game consoles, a ti-83 and a ti-84!
    • E37
83/84 hooks - requests / ideas
« on: April 26, 2017, 01:11:03 am »
I have become pretty adept at creating and managing hooks. For those who don't know what a hook is, it allows the programmer to modify the OS's behavior on certain events such as modifying or cancelling key presses, creating custom menus, among other things. If you haven't tried zStart yet, you really should. I won't give an advertisement for something I didn't make, but it does do some really cool things almost all of which are hooks.

So let me explain why I created this post. My calc's trace key is broken. I can press it but it won't register any key press. I would like the function of that key back - without getting a new calc. So, I make a key hook. It allows me to press ON and GRAPH at the same time and the calc to think that the trace key is being pressed. Awesome right? But what about 2nd - trace? I can make it so that when I go to to the catalog and select ZoomRcl it instead presses 2nd - trace. I can go on swapping keys all day long... But, what if I want to do something else? Say, when I press ON+X it runs a program, changes a setting or opens a custom menu. That is some of the power of hooks.

I would be happy to teach anyone who knows the basics of assembly how to use hooks or to write a custom one for someone since I don't have a project to work on right now. Any suggestions on what to create?


  • Consoles, mobile devices and vintage computers owned: Ti83,Ti84!
I've never finished a project, there is always a way to improve!
What's my calc's name? Convert $37 to decimal. Look up that element in the periodic table. Then take the abbreviation of that element and you have it!
Look! A slime!    <(^.^)>

Offline WholeWheatBagels

  • Full User
  • Join Date: May 2016
  • Location: "yes"
  • Posts: 140
  • Post Rating Ratio: +2/-0
  • call me Bagels
    • detjensrobert
    • @@detjensrobert
    • WholeWheatBagels
  • Gender: Male
Re: 83/84 hooks - requests / ideas
« Reply #1 on: April 26, 2017, 01:32:02 am »
A forced reset / wipe might be useful if theres a bunch of random variables that need to be cleaned up or if you're too lazy to find GarbageCollect
[On] + [2nd] + [Clear]
Living in another world to you.



Also in case you were wondering Frankie did go to Hollywood

Offline E37

  • Full User
  • Join Date: Jul 2016
  • Location: Lihilzard Empire
  • Posts: 229
  • Post Rating Ratio: +10/-0
  • I own 2 game consoles, a ti-83 and a ti-84!
    • E37
Re: 83/84 hooks - requests / ideas
« Reply #2 on: April 26, 2017, 06:55:51 pm »
A forced reset / wipe might be useful if theres a bunch of random variables that need to be cleaned up or if you're too lazy to find GarbageCollect
[On] + [2nd] + [Clear]
What do you mean by a forced reset? A ram clear? If that is all you want, install zStart, and to to the reset ram option in the memory menu and press ON+(any number 1-9) twice. Then whenever you press ON + thatKey your calc will reset ram.
  • Consoles, mobile devices and vintage computers owned: Ti83,Ti84!
I've never finished a project, there is always a way to improve!
What's my calc's name? Convert $37 to decimal. Look up that element in the periodic table. Then take the abbreviation of that element and you have it!
Look! A slime!    <(^.^)>

Online xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18726
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: 83/84 hooks - requests / ideas
« Reply #3 on: April 26, 2017, 07:04:57 pm »
For a key hook, make sure that the calc won't mess up while a Basic program is running (eg with OS vs interrupt vs hook conflicts)

Edit by p2: I hate this "Sent from my Nexus 5 using Tapatalk" >.<

« Last Edit: April 27, 2017, 12:24:52 am by p2 »
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline E37

  • Full User
  • Join Date: Jul 2016
  • Location: Lihilzard Empire
  • Posts: 229
  • Post Rating Ratio: +10/-0
  • I own 2 game consoles, a ti-83 and a ti-84!
    • E37
Re: 83/84 hooks - requests / ideas
« Reply #4 on: April 26, 2017, 08:42:35 pm »
For a key hook, make sure that the calc won't mess up while a Basic program is running (eg with OS vs interrupt vs hook conflicts)

Huh. I didn't think about that. The most useful (in my opinion) allows soft keys (uses 2nd and alpha) which shouldn't be a problem for the basic getkey. I also require the ON key to be held so that the key can still be used. I did notice that the OS seems to disable keyhooks when an asm program is running. I wonder if it is the same for basic?
  • Consoles, mobile devices and vintage computers owned: Ti83,Ti84!
I've never finished a project, there is always a way to improve!
What's my calc's name? Convert $37 to decimal. Look up that element in the periodic table. Then take the abbreviation of that element and you have it!
Look! A slime!    <(^.^)>

Online xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18726
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: 83/84 hooks - requests / ideas
« Reply #5 on: April 26, 2017, 10:06:44 pm »
Aren't there already soft keys in OS 2.53MP or higher?
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline E37

  • Full User
  • Join Date: Jul 2016
  • Location: Lihilzard Empire
  • Posts: 229
  • Post Rating Ratio: +10/-0
  • I own 2 game consoles, a ti-83 and a ti-84!
    • E37
Re: 83/84 hooks - requests / ideas
« Reply #6 on: April 27, 2017, 10:36:31 pm »
Aren't there already soft keys in OS 2.53MP or higher?
Soft keys for 2.53? I use 2.43 so I don't know. I am talking about the basic getkey, not the input or prompt function. Wikiti says that the soft key hook is only active in the system monitor so it follows that it wouldn't affect programs. I just tested it and basic programs are unaffected by any key hooks. They are affected by parser hooks of course, but it appears that it the only one. Assembly programs are completely unaffected by hooks.
  • Consoles, mobile devices and vintage computers owned: Ti83,Ti84!
I've never finished a project, there is always a way to improve!
What's my calc's name? Convert $37 to decimal. Look up that element in the periodic table. Then take the abbreviation of that element and you have it!
Look! A slime!    <(^.^)>

Online xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18726
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: 83/84 hooks - requests / ideas
« Reply #7 on: April 28, 2017, 12:40:49 am »
Yeah they added soft keys in MP OSes. I don't remember how to use them, but if I remember, you have to hold down ALPHA. And yeah I am aware that you are talking about the Basic getkey.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline c4ooo

  • Super User
  • CW Contest II Winner
  • *
  • Join Date: Aug 2015
  • Location: 127.0.0.1
  • Posts: 1007
  • Post Rating Ratio: +12/-4
  • Advanced forumer
  • Gender: Male
Re: 83/84 hooks - requests / ideas
« Reply #8 on: April 28, 2017, 02:32:50 am »
Aren't there already soft keys in OS 2.53MP or higher?
What are soft keys?

Offline E37

  • Full User
  • Join Date: Jul 2016
  • Location: Lihilzard Empire
  • Posts: 229
  • Post Rating Ratio: +10/-0
  • I own 2 game consoles, a ti-83 and a ti-84!
    • E37
Re: 83/84 hooks - requests / ideas
« Reply #9 on: April 28, 2017, 02:18:38 pm »
Aren't there already soft keys in OS 2.53MP or higher?
What are soft keys?
Soft keys are affected by second and alpha.
For example: U is a valid keypress and is different from 5 and L5 and u all of which are the same with a normal getkey.
  • Consoles, mobile devices and vintage computers owned: Ti83,Ti84!
I've never finished a project, there is always a way to improve!
What's my calc's name? Convert $37 to decimal. Look up that element in the periodic table. Then take the abbreviation of that element and you have it!
Look! A slime!    <(^.^)>

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games