HP Forums
hp16 and split octal conversion - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: hp16 and split octal conversion (/thread-17777.html)



hp16 and split octal conversion - Roland57 - 12-01-2021 01:24 PM

I like to share an interesting finding (maybe it is already well known):

hp16 is able to convert binary - octal - decimal - hex-numbers, e.g.

octal 177777 = FFFF hex

Some companies are using "split octal" representation (e.g. Heath Computer for their old 8-bit machines)

In split octal FFFF hex = 377.377 split octal (each byte is converted separately, the dot is just to indicate the split mode)

another example A9C2 hex = 124702 oct = 251.302 split.octal

Before you write a program on the hp16 to do the conversion, just put a zero between the two bytes, e.g. A9oC2 hex. Conversion to octal gives 251o302, the split octal value (with "o" als the digit zero to separate the two bytes).

Same works for octal to hex.

377o377 octal to hex gives FFoFF

Roland


RE: hp16 and split octal conversion - Ren - 12-01-2021 02:14 PM

I didn't know that,
Thanks!


RE: hp16 and split octal conversion - Sylvain Cote - 12-01-2021 07:10 PM

Hello Roland,
Learning something new about a calculator that I have been using almost every day since 1982 is surprising but very nice. Thanks!
Sylvain


RE: hp16 and split octal conversion - J-F Garnier - 12-01-2021 09:34 PM

Nice trick!
Also usable on other machines with base conversion such as the 32S/SII, the 42S or the 41C with Advantage ROM.

It works because 3 hex digits are 12 bits, exactly 4 oct digits.

J-F


RE: hp16 and split octal conversion - cdmackay - 12-02-2021 12:59 AM

nice! thank you.


RE: hp16 and split octal conversion - ijabbott - 12-02-2021 06:54 PM

I suppose split-octal is better than syllabic octal (or 'slob-octal'), which is basically the same, but without the separators between bytes!

E.g. FFFF hex == 17777 octal == 377.377 split octal == 377377 syllabic (slob) octal