The following warnings occurred:
Warning [2] Undefined array key 172423 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 172441 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 172452 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 172452 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





HP-30b key assignment trick -- Sudoku helper revisited



#4

I found a sort of tricky but useful way to temporarily reassign keys
on the HP-30b. Normal key assignment is easy using program step 0,
and all keys except a few critical ones (reset, ON/CE, INPUT,etc.) are
reassignable, this includes the numeric keys. The 30b is a macro
programmable machine in the sense that keys executed in a program act
as if they were pressed on the keyboard. In particular there's no
automatic ENTER for a numeric key, so a program can be used to enter a
digit in the middle of a number, for example. Making use of the above
two features along with a conditional that doesn't need to use the
stack at all (DSE and ISG) allows for temporary reassignment of keys.

The following code demonstrates this for a program that was suggested
in this thread

Mode:	RPN
Fix: 0

Shift-Hold 0 starts/resets Sudoku entry mode showing digits 1-9 available.
Pressing digits 1-9 will remove that digit from the display.
When all digits have been pressed 0 is shown and Sudoku mode ends
allowing normal calculator use. Sudoku mode can also be ended by
storing 0 in register 0, this is possible since the 0 key is not redefined.


Registers used:

0 - indicates mode, if greater than 1 then Sudoku mode else calculator mode
6 - 10 ^ (number of digits in new digit string)
7 - new digit string
8 - old digit string
9 - user entered digit

Prog 0:
0 SH0
1 2
2 STO 0
3 1
4 2
5 3
6 4
7 5
8 6
9 7
10 8
11 9
12 STO 8
13 Sudoku
14 RTN
15 Lbl 00
16 DSE 0
17 Gto 01
18 RTN
19 Lbl 01
20 STO 9
21 0
22 STO 7
23 1
24 STO 6
25 Lbl 02
26 RCL 8
27 Input
28 GF 03
29 1
30 0
31 /
32 Math | IP
33 Up |
34 Up |
35 = |
36 STO 8
37 Ans
38 Math | FP
39 Up |
40 = |
41 1
42 0
43 *
44 RCL 9
45 ?=
46 GT 02
47 Rv
48 STO + 7
49 1
50 0
51 STO / 7
52 STO * 6
53 Gto 02
54 Lbl 03
55 RCL 6
56 STO 0
57 RCL * 7
58 STO 8
59 Sudoku
60 RTN

bytes.checksum: 103.018

Prog 1:
0 1
1 1
2 Gto 00

Prog 2:
0 2
1 2
2 Gto 00

Prog 3:
0 3
1 3
2 Gto 00

Prog 4:
0 4
1 4
2 Gto 00

Prog 5:
0 5
1 5
2 Gto 00

Prog 6:
0 6
1 6
2 Gto 00

Prog 7:
0 7
1 7
2 Gto 00

Prog 8:
0 8
1 8
2 Gto 00

Prog 9:
0 9
1 9
2 Gto 00

-Katie


#5

Nice trick, but no more room for more programs. :(


#6

There's not a lot of room for program in this calculator at all. It's very close to the 12C in actual programming space because it's not space efficient in merging program steps.

However, in this case only about 50% of the total program space is used and you could add more programs to this code. Accessing them from arbitrarily reassigned keys wouldn't be possible but you could use the DSE/ISG mechanism as a means to branch to different programs by LBL. For example storing a 3 in register_0 could would indicate the program A should be run when Shift-0 was pressed, a 4 in register_0 would indicate program B, etc..


Possibly Related Threads…
Thread Author Replies Views Last Post
  DIY HP 30b WP 34s serial flash/programming cable Richard Wahl 2 2,457 12-04-2013, 11:14 AM
Last Post: Barry Mead
  17BII & 17BII+ Discounted Payback Period Revisited Tom Neudorfl 8 2,809 11-25-2013, 10:28 AM
Last Post: Don Shepherd
  Touch periodic table on HP Prime - revisited Terje Vallestad 2 1,385 11-23-2013, 11:47 AM
Last Post: Mic
  HP Prime - EEX/X/Toolbox-key suggestions bluesun08 2 1,489 11-07-2013, 06:15 PM
Last Post: bluesun08
  HP PRIME : strange behavior when trying user key capability Damien 12 3,804 11-03-2013, 11:02 AM
Last Post: Joe Horn
  HP PRIME: How to use [a b/c] key from a program Joseph Ec 4 1,854 10-29-2013, 06:18 PM
Last Post: Joseph Ec
  Roll-down key in HP-15C Steve Ross 6 2,222 10-15-2013, 04:12 AM
Last Post: Nick_S
  Flashing cable for HP 20 / 30B Stefan Koenig 3 1,926 09-19-2013, 05:53 AM
Last Post: Marcus von Cube, Germany
  Any 30b cables left? patryk 7 2,397 09-16-2013, 02:54 PM
Last Post: Marcus von Cube, Germany
  HP-30B (WP-34S) Technical Documentation Barry Mead 3 1,619 09-09-2013, 03:07 PM
Last Post: Harald

Forum Jump: