HP Forums
Can programs distinguish between a 67 and a 97? - 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: Can programs distinguish between a 67 and a 97? (/thread-15159.html)



Can programs distinguish between a 67 and a 97? - Dave Britten - 06-08-2020 12:01 AM

I'm not aware of anything as straight-forward as flag 55 on the 41 or 42 to detect the presence of a printer, but are there any clever ways for a program to determine if it's running on a 67 or a 97? Any subtle differences that can be tested for? It seems like there would be times where it makes sense to have separate print and display routines, rather than simply relying on the 67's default handling of "print" instructions.

I suppose at the very least, one of the user flags could be used as "printer enable".


RE: Can programs distinguish between a 67 and a 97? - Sylvain Cote - 06-08-2020 01:19 AM

The HP-67/97 only have 4 flags.
Flags 0 to 2 are reserved for users and flag 3 is used to detect data entry in a pause.
Ref: Owner's Handbooks - Section 13 - Flags => HP-97 p. 231 & HP-67 p. 255

Edit: both calculators have the same instruction set with the difference as you mentioned that the print functions do print on the HP-97 and pause or nop on the HP-67.


RE: Can programs distinguish between a 67 and a 97? - Dave Britten - 06-08-2020 01:25 AM

(06-08-2020 01:19 AM)Sylvain Cote Wrote:  The HP-67/97 only have 4 flags.
Flags 0 to 2 are reserved for users and flag 3 is used to detect data entry in a pause.
Ref: Owner's Handbooks - Section 13 - Flags => HP-97 p. 231 & HP-67 p. 255

Yeah, I'd probably just use flag 0 to mean "printer enable" if I have a program that should have optional printing on a 97. Wasn't sure if there's a way to detect which model the program is running on and use an appropriate default.


RE: Can programs distinguish between a 67 and a 97? - Valentin Albillo - 06-08-2020 01:46 AM

(06-08-2020 12:01 AM)Dave Britten Wrote:  I'm not aware of anything as straight-forward as flag 55 on the 41 or 42 to detect the presence of a printer, but are there any clever ways for a program to determine if it's running on a 67 or a 97? Any subtle differences that can be tested for?

At least a program can distinguish whether it's running on an HP-97S or not.

V.