HP Forums
(42S) Programmable Speed-Up in User Code - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (42S) Programmable Speed-Up in User Code (/thread-8292.html)



(42S) Programmable Speed-Up in User Code - Joe Horn - 05-04-2017 03:05 AM

[The following was posted by Chris Bunsen (d. 31 January 2013) on the comp.sys.handhelds newsgroup on 13 September 1991. It appears here as a kind of tribute to his memory. -jkh-]

My my my.... So nice to hear about happy HP-42 owners. The HP-42 was a true labor of love,
(arent they all?) ..
In that light, here's a little jewel that demonstrates a programmable speed-up in
USER code. I will not/can not/please dont ask me/ explain how come it works, but
it was a lot of fun. By the way, the little bugger has more matrix functions and
abilities than ANY OTHER HP handheld.

1  LBL TT        test
2  BEEP
3  XEQ TURBO
4  BEEP
5  TONE 9
6  RTN

7  LBL TURBO
8  "////"        Four Divide keys
9  111           Rate + 16 * Cont[0:3]  Rate = 15; Cont = 16h
10 XTOA
11 160           Dtst + 16 * Dcont      Dtst = 0; Dcont = 0Ah
12 XTOA
12.5 _"////"     (Untested)--finish filling out ALPHA number with 0s
13 20360         Magic constant to recall Alpha reg as a real
14 8124          Magic constant to store a Complex number over Ctl regs
15 RCL REGS      save REGS
16 CLV REGS      Create bug which allows peek/poke
17 SF 25
18 CLsigma       Now REGS doesn't and does exist!
19 RCL IND ST Z  Recall Alpha data as number
20 1,000,077     Will store complex--must keep timers going
21 RECT
22 COMPLEX
23 STO IND ST Z  Store magic numbers into HDWR registers
24 X<>Y          get REGS back
25 STO REGS
26 END


After running, CPU will run faster. ON key for any reason will restore
slower rate. Batteries don't last long under this regime, and die sooner--
in fact operation is not guaranteed at all.

I had to fix the bug that made this possible; I think the REV Bs and REV C are
"FIXED", but all REV As Ive tried will respond well.... Smile Smile

Keep on enjoying our products,
Thank you thank you thank you,
Chris "RPN LIVES" Bunsen
HP -Calc Lab
Corvallis, OR


RE: (42S) Programmable Speed-Up in User Code - Werner - 05-04-2017 06:20 AM

It doesn't work in Free42!! ;-)

Werner


RE: (42S) Programmable Speed-Up in User Code - rprosperi - 05-04-2017 12:45 PM

(05-04-2017 06:20 AM)Werner Wrote:  It doesn't work in Free42!! ;-)

LOL! Free42 must have been based on Rev C. Wink


RE: (42S) Programmable Speed-Up in User Code - anetzer - 05-04-2017 04:39 PM

Can anyone please educate me about step 12.5? How is it entered?

Plus one question out of sheer laziness: How does one check which Rev. a calc belongs to?

Thanks!

a


RE: (42S) Programmable Speed-Up in User Code - grsbanks - 05-04-2017 05:01 PM

(05-04-2017 04:39 PM)anetzer Wrote:  Plus one question out of sheer laziness: How does one check which Rev. a calc belongs to?

For the HP-42S: http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv015.cgi?read=73353


RE: (42S) Programmable Speed-Up in User Code - Jurgen Keller - 05-05-2017 06:23 PM

Probably the same effect as described here: HP-42S Fast Mode under program control

I once made a short video about this trick, see HP-42S Fast Mode

Anybody out there if that works also for the 17B(II) und 27S?


RE: (42S) Programmable Speed-Up in User Code - Gene - 05-05-2017 06:55 PM

Woohoo. someone referenced that web page of mine from a LONG time ago now. :-)


RE: (42S) Programmable Speed-Up in User Code - pier4r - 05-05-2017 07:33 PM

OT: Gene you should have it in the signature. I'm going to read it and putting it in the wiki4hp


RE: (42S) Programmable Speed-Up in User Code - Gerald H - 05-10-2017 07:28 AM

(05-04-2017 04:39 PM)anetzer Wrote:  Can anyone please educate me about step 12.5? How is it entered?

Plus one question out of sheer laziness: How does one check which Rev. a calc belongs to?

Thanks!

a

It's append to the existing alpha contents:

├”////”


RE: (42S) Programmable Speed-Up in User Code - anetzer - 05-10-2017 04:13 PM

Thank you all!
a.