Category Archives: articles

Disclaimer

Sydneysmith.com is not affiliated with the Hewlett Packard Company or with Hewlett Packard Australia Ltd.

The calculator emulators on this site are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Whilst the emulators are inspired by calculators designed and built by Hewlett Packard, Hewlett Packard is not responsible for the emulators nor for any shortcomings or any bugs in them.

Hewlett Packard and the HP logo are trademarks of the Hewlett Packard company.

HP67 Flags

The HP67 calculator has 4 flags. These can be set, cleared or tested. You use them in a user program to remember situations and to behave differently according to the situations. One example might be: the user entered a value (or not) and your program behaves suitably either way. There were a whole stack of programs at the time where you could enter a value and press [A], [B], [C] etc to store the value; or just press the button to calculate it. These included tax calculators, principal and interest calculators and ohms law – key in any two and press the third button for it to work out the third value. Continue reading HP67 Flags

HP67 Card Reader – Default Functions

The HP67 card reader contains two instructions that control a “default functions” flag.

The card reader integrated circuit is a Mostek MK6250N. That connects to the Arithmetic, Control and Timing (ACT) chip and actions a number of instructions that the ACT doesn’t understand. Instructions are 10 bits long. For this article the ones we are interested in are: Continue reading HP67 Card Reader – Default Functions

The HP67 Keypress Wait Loop

This is the microcode in a HP67 calculator that waits for a key press.

00167: 0 -> s 3
00170: CRC 1500
00171: if 1 = s 3
00172: then go to 0263
00173: 0 -> s 1
00174: CRC 300
00175: if 1 = s 3
00176: then go to 0204
00177: if 0 = s 11
00200: then go to 0206
00206: 0 -> s 3
00207: CRC 560
00210: if 1 = s 3
00211: then go to 1324
00212: if 0 = s 15
00213: then go to 0167

It spends most of its time in this loop just checking to see if there is anything to do.

The addresses above are in octal. All of them are < 256 decimal so they are all in rom 0 of the first “quad rom” (one chip with 4 lots of 256 microcode instructions). Roms 0, 1, 2 and 3 are in the first quad.

The CRC instructions are “card reader circuit” commands.

CRC 1500 checks a flag in the card reader and if set, sets the s 3 flag in the calculator (and clears the card reader flag). I don’t know what the flag means yet but 0263 is likely to answer that.

CRC 300 checks the run-w/prgm switch. If you are in “W/PRGM” then it sets the s 3 flag. It clears it if you are in “RUN” mode.

CRC 560 checks whether a card has been inserted into the card reader. If so, s 3 gets set. If not, s 3 is 0.

s 15 gets set when a key has been pressed. This suggests that 00214 onwards deals with a key press.

s 11 is a mystery at present. If does seem to go into code that checks whether MERGE has been selected so it may be card reader related.