Post Reply 
Can programs distinguish between a 67 and a 97?
06-08-2020, 12:01 AM
Post: #1
Can programs distinguish between a 67 and a 97?
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".
Visit this user's website Find all posts by this user
Quote this message in a reply
06-08-2020, 01:19 AM (This post was last modified: 06-08-2020 01:26 AM by Sylvain Cote.)
Post: #2
RE: Can programs distinguish between a 67 and a 97?
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.
Find all posts by this user
Quote this message in a reply
06-08-2020, 01:25 AM
Post: #3
RE: Can programs distinguish between a 67 and a 97?
(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.
Visit this user's website Find all posts by this user
Quote this message in a reply
06-08-2020, 01:46 AM
Post: #4
RE: Can programs distinguish between a 67 and a 97?
(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.

  
Find All My HP-related Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)