From: "Christian Meland" <christian.meland@pfi.no>
Newsgroups: comp.sys.hp48
Subject: A "useful" aENTER program
Date: 25 Aug 1998 09:27:09 GMT
Organization: PFI
Lines: 39
Message-ID: <01bdd00a$a53b4fe0$9916f181@r286>
NNTP-Posting-Host: pfi-dhcp-153.pfi.no
X-Trace: snipp.uninett.no 904037229 26761 129.241.22.153 (25 Aug 1998 09:27:09 GMT)
X-Complaints-To: news-abuse@uninett.no
X-Newsreader: Microsoft Internet News 4.70.1161
Xref: republic.btigate.com comp.sys.hp48:15012

Hi.
I often type a lot of numbers into my hp, as arrays (vextors/matrixes).
Beeing used to the keyboard, this is quite fast. However, when I hit a
negative number, I loose the rythm. I have to key in the number, then
remember to press the +/- key. Here is a aENTER-program that let you press
double space when toy wan't a negative number.

<< WHILE DUP "  " POS		@ "  "= double space
REPEAT
LASTARG " -" REPL
END
OBJ->
>>

Bytes: #EF3h  49

Key in the program, store it under the name 'alphaENTER' (alpha = greek a,
alpha rightshift A).

Then activate vectored enter by typing 
{ -62 -63 } SF

To quit, press leftshift alpha.

Now, if you type 
[ 1 2  3 4  5]	@ Note double space before 3 and 5

it will apear as
[ 1 2 -3 4 -5 ]
on the stack.


Christian
 
-- 
Christian Meland
Research Scientist, PFI
N-7034 Trondheim, Norway
Phone +4773550976, at home +47 73922526