[comp.sys.handhelds] 48SX: usage, units, edit

fin@norge.unet.umn.edu (Craig A. Finseth) (03/27/90)

I have been seriously programming (well, alright, playing with) my
HP-48 and came across three "helpful hints" that may prove useful to
people:


THE 'usag' FUNCTION

(This is the 'usag' function supplied by HP as part of their PC/Mac/BB
distribution.)  It's neat.  It's helpful.  It hangs my machine in some
cases.  In particular:

	- clear the stack
	- enter a command (e.g., 'COS'
	- run 'usag'

The usag function works fine, but when I exit my calculator hangs.  I
must reset it (ON + menu key 3).  This doesn't happen if the stack was
not empty

	- clear the stack
	- enter anythingg (e.g., 0)
	- enter a command (e.g., 'COS'
	- run 'usag'

Works fine.  Exits fine.


UNITS

I have found an almost convenient way to convert units.  Enter your
from value:

	5_m/s

enter a zero to value with the correct units:

	0_ft/s

add them:

	+

(In keystrokes:

	/>  UNITS  SPEED  5  M/S  0  FT/S +


EDIT

Let' say that you have a big hairy program or expression and you want
to edit it.  You do so using any of the usual methods, and get this
useful menu:

	<-SKIP  SKIP->  <-DEL  DEL->  INS  ^STK

So you edit for a while, keying in some new commands using the menus.
All is well and good, but now what if you want the SKIP and DEL
functions back?

As it turns out, you just do:

	<\  EDIT

and you're all set.

That's all my helpful hints for now...

Craig A. Finseth			fin@unet.umn.edu [CAF13]
University Networking Services		+1 612 624 3375 desk
University of Minnesota			+1 612 626 1002 FAX
130 Lind Hall, 207 Church St SE, Minneapolis MN 55455-0134, U.S.A.

alonzo@microsoft.UUCP (Alonzo GARIEPY) (03/28/90)

In article <1491@uc.msc.umn.edu> fin@norge.unet.umn.edu (Craig A. Finseth) writes:
> The 'USAG' function
> It's neat. It's helpful. It hangs my machine in some cases. In particular:
> 	- clear the stack
> 	- enter a command (e.g., 'COS')
> 	- run 'usag'

The USAG command takes a LIST containing a command name (I wasn't sure from
your description if you were doing something else).  I haven't been able to
get it to hang on my machine.

> UNITS
> I have found an almost convenient way to convert units.
> 	<gold>  UNITS  SPEED  5  M/S  0  FT/S  +

Here's a really convenient way to convert units:

	<gold>  UNITS  SPEED  5  M/S  <gold>  FT/S
	
<unit> multiplies by the unit
<blue> <unit> multiplies by the reciprocal of the unit
<gold> <unit> converts to that unit

Alonzo Gariepy
alonzo@microsoft

billw@hpcvra.CV.HP.COM (William C Wickes) (03/29/90)

There was a bug in a pre-release version of USAG that resembles what you
are describing.  The system would hang if USAG were executed from the
command line (i.e. enter USAG then press ENTER) as opposed to pressing
the VAR menu key for USAG.  This bug was fixed on the official PC Link
Disk, and I believe, on the HP BBS.  However, there were a number of
prerelease versions of the PC Link disk sent to reviewers, and so it's
easy to see how the buggy USAG may have gotten around.

If you recall the USAG object to the stack and execute BYTES, you should get
a checksum of #6BC7 and a size of 1392.5 bytes.  If you get #9B90h/1382.5 
bytes, then you have the pre-release version (if you get something else,
all bets are off).

The following is an ASCII-fied version of the correct code, where
each nibble is represented as a character 0-F.  Using the language
of your choice, convert the code into "proper" 8-bit bytes, and you'll
end up with an HP48SX object binary image that you can download.

     840584054383D214D9D20D29512BF8112040D9D20881307B550399162AC8
     1980509AF16DA9162AC8179E60D9D20D6E207036F6D6D616E64688130702
     80442309EB5032230D2A628DA16D9D20C2A209100002826457E63647E292
     022C230B1F62B9F06CB916D9D20C2A2070000F839150B21302C230D0F62B
     9F06CB916D9D20C2A20700008839150B21302C23035F62B9F06CB916D9D2
     0C2A20700004839150B2130B2130C2A201100002822505E492B9F0639150
     B5421B21302C23047A20D6E208046963707E616D656D6E207036F6D6D616
     E646B21300D4708813079E60581B1E2B308DA16D9D20442303004099040B
     11406FD463F04047D460BD46A0E46ABD4600E4694040B2130CCD20E51001
     43E71748FB976013016414234E1A818A6E0D21088DF7530164723021F811
     0F810FE81FDE81ECE81D6B8129B81B5A8108A815AA8107135241471748A2
     240D52F164241471748A2B10D52F2072A0808244CA366110709080824902
     46808C7E708FB976011B134D214234B21308A6F011A1088FF753011AE610
     A34119208A6C01641466F001321641461301641088F91030136068F73560
     8FB976007134649FD210A8092010813610B8F7356001645A3D6E20804696
     3707E616D656E8F6013593F55A38A816D9D20C2A20D1000E4F6021427765
     7D656E647375F321C209354093B2130954509FF3079E60D9D20D6E205047
     97075637D6E20507786963686C9B26D6E204016277637CCD208B0008FD5F
     30CE10A8FB97607C300070809072C0D0E0F001101121314151B161C1D1E1
     F1027181122222222207134B14490A1C6B0016E16EF4D2A96F4101132C6C
     A130D014A1008F7356011ACE5C0142164808C10A8FB9760111636FC2A207
     000032D6E205077869636864E76139150C2A20D000002F6660239150D6E2
     0703686F6963656374E76139150B64218E1A3D6E204016277637BD370122
     708D761D6E204016277637D2E30122700ED3052330D9D208A816C2A20B00
     0014E6979FF303D816C2A20510003597D626F6C69636580403D816D9D207
     9E60D9D206B6508DA16D9D208813079E6084115E2B303223079E60634E1E
     2B3057B30B21300CA30B2130D6E207036F6D6D616E6460CA302C230B7650
     FED30300407F3702C23012270C9B268813046C303BF30D2C26D9D2088130
     9FF30E5216E8F603223030040E5216E8F6057B30CB91630126B213044230
     43370A21168DA16C2A20D000005943445C2A20310000527F6762716D6B21
     301192000100CBD3078D40B213039150F3040122700ED309242143370B21
     30EF116B76500CA3047A20D6E204016277637D6E20504797075637D6E205
     07786963686D6E204046963707D6E20703686F696365637D6E2040568796
     47B21300D470D6E20703686F6963656379FF30C6816D9D20D6E204046963
     707E8F60C2093540937947079470B2130D6E20404696370779E60D9D209F
     F303D816D9D2078636A6536C1B46B1FF3D9D208870418A3079E60D6E2040
     5687964772D70B2130F7140745364423021EF3B2130D00403D816D9D20C1
     B4674536F7140745364423021EF3B21308523021EF3B213018A3018A3047
     A2047A20C2A20D0000E4548545D9D2088704D6E20507786963686FED30D6
     E20703686F6963656372C2304EC30CB916D9D20649263392030000000000
     00020339208990000000000050A5141B213079E60D6E2050778696368672
     D70B2130B213047A20C2A20D000005255465D9D2088704D6E20507786963
     686E0E3066226CB916D9D2044230D6E20703686F69636563733920300000
     0000000020339208990000000000050A5141B213079E60D6E20507786963
     68672D70B2130B213047A20C2A20D000054859445D9D208870418A3079E6
     0D6E20405687964772D70B2130B2130B21309FF300CA3079E60D6E204056
     8796475513658983794707947044193B2130B21300