[comp.sys.handhelds] Turning menu keys off

CW%APG.PH.UCL.AC.UK@CUNYVM.CUNY.EDU (06/21/91)

      Dear all,

      To turn off the menu label keys at the bottom of the screen
      use

                           #4E2CFh SYSEVAL

      You should see the menu line dissapear briefly. It comes
      back very quicly under normal operations but remains
      hidden if done at the beginning of a program that does
      not require user input until the program is finished.
      To turn it on again use

                           #4E347h SYSEVAL

      An example program follows. Run TEST and it counts from 1 to 100
      with the menu switched off and then counts again with the menu
      switched on.

         MOFF = << #4E2CFh SYSEVAL >>
         MON  = << #4E347h SYSEVAL >>
         LOOP = << 1 100 FOR i i 1 DISP NEXT >>
         TEST = << MOFF LOOP MON LOOP >>

      I hope this is useful


          Conrad

rrd@hpfcso.FC.HP.COM (Ray Depew) (06/25/91)

In comp.sys.handhelds, CW%APG.PH.UCL.AC.UK@CUNYVM.CUNY.EDU (is that Conrad?)
says:

>      Dear all,

>      To turn off the menu label keys at the bottom of the screen
>      use

                           [ stuff deleted ]

Nice job.

Regards
Ray
rrd@hpfitst1.hp.com

druegeme@hpwad.WAD.HP.COM (#Daniel Ruegemer) (06/27/91)

these SYSEVALS are really useful, thanks for posting them.

Is it also possible to turn off the 'busy'- Announciator ?
(For it seem to confuse the users of my software: "What's this ? What have 
I done wrong ??")

Daniel 

bson@rice-chex.ai.mit.edu (Jan Brittenson) (06/29/91)

In a posting of [27 Jun 91 11:46:22 GMT]
   druegeme@hpwad.WAD.HP.COM (#Daniel Ruegemer) writes:

 > Is it also possible to turn off the 'busy'- Announciator ?

I'm not sure whether you can from a SYSEVAL, but you can from ML:

	42333 turns it on

	42359 turns it off


   Or, in a code object (I hope the opcodes are correct; they are
entered from memory, and are intended only for illustration):

To turn it on:

	ccd20			; code object
	a1000			; code size, including these 5 nybbles (5+3*7)

	8fb9760	call.a	679b	; stash away RPL registers
	8f33324	call.a	42333	; turn on annunciator
	8d34150	jump.a	5143	; reload RPL registers, continue thread

To turn it off:

	ccd20			; code object
	a1000			; same size as above

	8fb9760	call.a	679b	; stash away RPL registers
	8f95324	call.a	42359	; turn annunciator off
	8d34150	jump.a	5143	; reload RPL registers, continue thread


   Actually, I just tried both routines, and they work just fine.
Enter the hex data and use Rick's ASCI-> to convert to a code object.
To simplify the typing, enter the on routine, convert it, recover it
with LAST ARG, and modify just the sequence "333" to "953" to obtain
the hex string for the off routine.  Both 42333 and 42359 update the
flag word at 706c3 as well as 10b to toggle the actual display.

   Of course, if these are available via SYSEVALs, then you're saved
some typing.

   Save the above two routines in BON and BOFF, then run the following
program:

	<< DO BON .5 WAIT BOFF .5 WAIT
	   UNTIL 0
	   END
	>>

It will blink the busy annunciator.

Have fun.

						-- Jan Brittenson
						   bson@ai.mit.edu