Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

System-RPL question

1 view
Skip to first unread message

Jim Weisbin

unread,
Dec 29, 1999, 3:00:00 AM12/29/99
to
I know that the HP48/49 traps keystrokes by key number and plane
number. On the HP49G, some keys seem to have valid plane numbers up to
10. This program will take a key number on level 2 and a plane number
on level 1, and return the program or action associated with that key:
::
CK2&Dispatch
BINT17 (two reals, key num plane num ---> )
::
COERCE2
Key>U/SKeyOb
FPTR 4 2 (must have lib 256 attached, this is ->S2)
;
;
@

For example, 16 8 ---> returns { :: PTR 19E15 "HEX" BINT16 ;
:: PTR 19EB5 xHEX ; }@

But plane numbers above 10 or below 1 return errbeep.

My question is - how does the HP49 trap combination keystrokes (like
holding down the right shift key and pressing right arrtow at the same
time to put the calc into server mode)? This does not seem to
correspond to any of the plane numbers that I tested for the right
arrow key (15).


--
<j...@savagetranscendental.com>


Sent via Deja.com http://www.deja.com/
Before you buy.

savagetran...@my-deja.com

unread,
Dec 29, 1999, 3:00:00 AM12/29/99
to
gulp, it will take some time to digest - but thanks! --- Jim

In article <386a4...@isoit370.bbn.hp.com>,
"Jean-Yves Avenard" <aven...@epita.fr> wrote:
> Hello.
>
> First there is no need for the library 256 to be attached when you
call FPTR
> 4 2.
>
> There are only 6 valid planes:
> 1-Normal
> 2-LeftShift
> 3-RightShift
> 4-Alpha
> 5-AlphaLeftShift
> 6-AlphaRightShift
>
> A simultaneous key code is not handle that way.. The ShiftCode is
added to
> the KeyCode.
>
> If you're using a ParaOuterLoop, you can enable the simulateous key
> capabilities by adding these few instructions at the begining of your
key
> handler:
>
> ::
> 4DROP 2DUP 2DUP
> ;
>
> A keycode will then look like: ShiftCode (40,80 or C0) + NormalKeyCode
>
> So LeftShift and simultaneously A, will be <41h>
>
> Jean-Yves
>
> "Jim Weisbin" <j...@savagetranscendental.com> wrote in message
> news:84d34q$omt$1...@nnrp1.deja.com...

Jean-Yves Avenard

unread,
Dec 30, 1999, 3:00:00 AM12/30/99
to
0 new messages