Re: HP-16C limits?



#2

Sorry for the delay (it is done on my spare time).

Under is the program (not tested fully) for the compressor (LBL C) and the decompressor (LBL D) on the HP16C.

Quote:
As I said, it is 5 KB of Java classes, and though RPN may be more compact, there is no way to squeeze it into an HP 16C.

So it seems you are wrong, I have squeezed it enough to fit. 169 bytes in size is rather efficient, isn't it ?

Patrice

LBL C
8
8
8
GSB E
X<>Y
X<>I
CLX
GSB 9
GSB 9
GSB 9
3
RLn
X<>I
7
0
0
GSB E
SR
OR
GTO I
LBL 9
X<>Y
4
RRn
X<>Y
RRC
RTN
LBL 1
8
GTO 9
LBL 3
4
E
GTO 9
LBL 7
6
E
GTO 9
LBL 2
6
GSB E
4
GSB A
A
GTO 9
LBL 4
6
GSB E
7
GSB A
C
GTO 9
LBL 6
6
GSB E
7
GSB A
E
GTO 9
LBL 5
6
0
GSB E
3
GSB A
2
E
GTO 9
LBL E
X<>Y
AND
LST X
X<>Y
XOR
LST X
RTN
LBL A
RLn
LBL 9
OR
RTN
LBL B
RRn
OR
RTN
LBL D
3
8
0
GSB E
SL
OR
8
GSB E
X<>I
R DN
GTO I
LBL 0
RTN
LBL 8
6
GSB E
X<>I
R DN
GTO I
LBL 0
8
GTO 9
LBL 2
6
0
GSB E
4
GSB B
8
0
GTO 9
LBL 4
6
0
0
GSB E
8
GSB B
8
0
0
GTO 9
LBL 6
6
0
GSB E
4
RRn
X<>I
R DN
GTO I
LBL 0
6
0
0
GSB E
8
GSB B
8
8
0
GTO 9
LBL 2
6
0
0
GSB E
4
GSB B
8
0
8
GTO 9
LBL 4
8
8
GTO 9
LBL 6
8
8
8
GTO 9

#3

Very nice. I thought I might regret saying "no way".

Actually, the DPD part is "only" 3 KB of the java code. The other 2 KB are the rest of the specification, packing exponent and sign with the coefficient:

http://www2.hursley.ibm.com/decimal/dbspec.html

You can't do that in the remaining 44 bytes, can you?


Possibly Related Threads...
Thread Author Replies Views Last Post
  Bought a 16C to compensate a little Eelco Rouw 23 2,589 12-07-2013, 01:26 PM
Last Post: Eelco Rouw
  Shiny new 16C! Keith Midson 7 929 10-27-2013, 02:22 AM
Last Post: Keith Midson
  Joys of eBay: HP-32S, HP-32SII, HP-42S, HP-16C, ... Sasu Mattila 7 898 09-23-2013, 04:39 PM
Last Post: Julián Miranda (Spain)
  HP-16C simulator fhub 12 1,260 06-30-2013, 10:14 PM
Last Post: Robert Prosperi
  Program for HP-16c... Leonid 9 1,013 06-07-2013, 08:51 PM
Last Post: David Hayden
  HP 11C/12C/15C/16C case Philippe Cairic 4 794 11-06-2012, 06:04 PM
Last Post: Matt Agajanian
  Understanding HP-16C integer division Jimi 18 1,820 10-16-2012, 09:13 PM
Last Post: Eddie W. Shore
  wp 34s exponent limits? wildpig 26 1,999 08-28-2012, 02:48 PM
Last Post: Marcus von Cube, Germany
  Limits of Indirect Addressing on the WP34S Namir 11 1,100 08-01-2012, 11:53 PM
Last Post: Namir
  WP34S - Flashing Limits Les Wright 13 1,083 03-12-2012, 10:53 AM
Last Post: Marcus von Cube, Germany

Forum Jump: