Path: funic!fuug!mcsun!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!rutgers!modus!otello!gear!wolf!Simone.Rapisarda
From: Simone.Rapisarda@wolf.sublink.org (Simone Rapisarda)
Newsgroups: comp.sys.handhelds
Subject: new{version of GATEWAY-48
Message-ID: <16787.2880DF85@wolf.sublink.org>
Date: 14 Jul 91 19:53:24 GMT
Organization: Rekursive Labs sdf - Pisa, Italy
Lines: 184

GATEWAY version 2.7 has a bug in the XLIB 873 8.
The program try to enter in the hidden dir without the HOME command before. 
So if the hidden dir is the only variable in the path with the null name 
all works fine, but if not the XLIB 873 8 will evaluate the first object 
in the path with the null name causing the program to stop leaving junk 
on the stack.
So to correct it just add the command HOME at the beginning of the 
XLIB 873 8.

Here it is also a correct and improved version of GATEWAY:

It's 150 bytes smaller, the hot parts were translated in internal RPL 
to make them faster and some other things happened.
Here is the original doc, modified where needed.


             GATEWAY-48 Codelock Program ver 2.7.1
             =====================================

GATEWAY-48 is a codelock program for HP48SX. When your HP48SX is 
turned on, it displays a startup message (for example your name 
and phone number) and prompts you for a 4-digit code. If you key 
in the correct code, your 48 is turned on just like usual. Other-
wise it is turned off again.

With GATEWAY-48 you have complete software protection and enough 
hardware protection to keep people from messing with your calcu-
lator. If you know how, you CAN get in without knowing the right 
code, but the memory will be cleared in the process. All normal 
stuff such as ON-C, ON-A-F and the hidden reset button will not 
work.


                       INSTRUCTIONS
                       ============
If you have something you do not wish to risk losing in your 
calculator, make a backup.

Download the string at the end of this message to your 48. Compile 
it using ASC->. Store the resulting library with 0 STO. Turn off 
your 48, then on again.

Now press the LIBRARY menu key. There will now be a menu named 
GATEWAY-48. In this menu you will find the following programs:

WAKE
----
Assigns to the OFF key the 'off' program and turns on USER mode.

SLEEP
-----
Delete the assignment of the OFF key.

DIE
Uninstalls the GATEWAY-48 library and clears key definition. Also 
removes the hidden code and the MSSG in port 0. You can now execute 
it from any dir. The menu is updated when done.

CODE
----
Enables you to enter or change the code. Run this after installing 
GATEWAY-48. The first time you run it, it will only prompt you for 
the new code, but normally you must key in the old code as well. 
All the messages are now in size 3 instead of size 2.

off
The main code program. Turns off your 48 enabling the codelock. 
When you turn it back on, you have to key in a four-digit code to 
gain access to your 48. Note that it will not work if you haven't 
selected a code using CODE.

MSSGE
-----
Use it to edit the startup message, if there is no MSSG in port 0 
then alpha mode is turned on so you can start immediately to type 
in the message. If the MSSG in port 0 exist then the alpha mode will 
remain off so you can move with the cursor on the existing startup 
message and change the parts you like.
The maximum message size is 7 lines x 22 columns. If no message is 
provided the startup screen will be all blank.

ABOUTGW
-------
Shows a copyright notice and the version number.


ADDITIONAL INFORMATION
======================

The codelock is not activated when the HP48 turns itself off to 
preserve battery.

Alarms are allowed to execute even if the codelock is enabled, but 
when the execution finishes, the calculator is turned off again.

The 'off' user key assignment is sometimes cleared by other pro-
grams or actions. Pressing the USR key once or twice (depending on 
the state of flag -61) or running the ASSIGN program will restore 
it. 

The program ASC->, written by William C Wickes, has been posted at 
Comp.sys.handhelds several times and is available from many FTP-
sites.

I will not provide source code.

----------------------------------------------------------------
GATEWAY-48 is Copyright Erik Bryntse 1991. Non-commercial distri-
bution allowed. I take no responsibility for any damages caused 
by this program.
----------------------------------------------------------------

@@   All credits go to Erik Bryntse, I have only modified his   @@ 
@@   great program.                                             @@

bye
                                                  RAP


-------------------------- ASC ---------------------------------
%%HP:;
"04B20BAC00A074144554751495D24383A09634AB000000045B00C00008963700 
D9D20CFA20100384E205034349554358813028EC133920100000000000002015 
BE1C943244230C9432D9D201875116712881304563284E206034341323334397 
632315814563284E205034349554359763231581041A1B2130EF3A1119209630 
09077029E20963900B21308963800D9D20C2A2051000E456770234F646565042 
129E20963A00C2A20F000014761696E65F32129E20963A0092CF1167E1C9432D 
9D204563284E206034341323334397632DCC02B2130C9432D9D208DBF129E209 
63B00B2130EF3A1B21308963900D9D207AF10CFA20100384E2040D4353574881 
3028EC1ED2A215BE1C943244230C9432D9D20167129C2A2BA041B2130EF3A1D9 
D20CCD203720084F8FB9760D2066E20CCD207520084F174E730F068FB976077E 
1580D26DC08F51110808F200834712007D81412132102349120073814D0078AE 
A067B067802014234119208A6DE1641468082453721E2068082130AE1A01F690 
A5CA6C52FA0190D7B808203814AF3F37670465A87A4C50F2307F69136194BD32 
033617123917E220D2E61091FB010014F8088514D8F5E0101118DC7530208F2D 
76013234C5200EA1308D2F14034000100607CE4000630BD1A85CD4CED9742054 
FD97B1049F0731A096590B4760CFE5D903C681B4CA3433000C2134D215608018 
F06110DAD280116015E0902000318282422484442888482131B2950714210180 
824B0200E281B4CA1008D3C870005034349554351BBA5071461348F419E04731 
648F3F8E05008F67CE040216916C1560808B0001608F598E05DC8D0F510B2130 
FEF3003AE1C9432D9D20218917F791339205990000000000010E5FB1C9432D9D 
202799129E20963900B2130DC136EF8918DBF1B2130C9432D9D20C8481041A11 
87514563284E2050343495543597632EFE02ABE81CFA20100384E20503434955 
43588130EFE02EFE02B2130EF3A1B2130CCD20FF0008FB97608FE316084F8F51 
110808F050408AF0AF1AF2AF320134135AF320F37240A87816B432390BAE2081 
3DBDA1FB010014F8088514D8F5E0103453721CA8DC75302030AD1A85CD43FD97 
61090A2FD97B0090E7FE5D901C681B4CA3423000C2134D215608018F06110DAD 
280116015E00EF201182824224844428884828963B00D9D20C2A20110007527F 
6E676125E3219C2A2F17A1B21308963600D9D20FC2E4C2A20BA0000202741445 
54751495D24383020202670223E273A0A09A021393931302269702542796B602 
242797E6473756A0A00202020202670223E273E21302022697A0A00202023596 
D6F6E656022516079637162746169C2A2BA041743A2BF241B21308963500D9D2 
0CFA20100384E2040D4353574C2A205000092CF182EC1683A2279E147A2047A2 
084E2010C8B2130B2130C9432D9D2092CF104B02B2130EF3A1AC42274726EFE0 
292CF1C2A2050000D9AE1C9432DCC02C94323FBF1EF3A1B21308963400D9D207 
AF10521A1041A11875184E206034341323334378BF168BC13392010000000000 
00020279E1C9432D9D20C2A2051000F4C6460234F646565142129E20963A0016 
7E1C943229E20963800C943229E20963B00EF3A1B2130C9432D9D208DBF129E2 
0963800B2130EF3A1EB3A1B21308963300D9D20C8481041A11875184E2060343 
413233343881304563284E205034349554359763231581CFA20100384E205034 
3495543588130EFE024F412ABE8129E20963900B21308963200D9D2029E20963 
100521A1041A11192096300EA6701875147A2084E206034341323334384E2050 
3434955435CFA20100384E2040D4353574CFA20100384E20503434955435B213 
0EFE02EB3A1218917F791339206990000000000010E5FB1C9432D9D2027991CF 
A20100333920200000000000378078BF1EFE02EFE021E11269112B2130DC136E 
F8918DBF1B21308963100D9D2033920100000000000319096B14B21308963000 
D9D20C943229E2096330033920100000000000319082B1411920E300013735B2 
130E4A20140003BFFF38FFFC5EFF6CDFF9DCFF61CFF73BFF094FF865FF126FF2 
E9FF8EAFFE4A20ED0000000000000B4000C50001700000000580000000000000 
00000000000000000000000000000000000660003044945420030F6666630040 
7514B4540004034F444544005035C454540510050D435357454500701424F455 
457475600B400063000B60005600025000B300013000D4E10B95"
------------------------------ ASC -----------------------------


------------------------------------------------------------------------



--  
 WolfNet BBS Pisa (Italy) Tel. +39-50-589050 300-14.4K Baud Matrix 2:332/602.0
 Simone Rapisarda - via FidoNet node 2:33/800
 UUCP: ...!gear!wolf!Simone.Rapisarda
 ARPA: Simone.Rapisarda@wolf.sublink.org
