HP-67's Flag 3 to HP-41/42 Equivalent



#2

Hello all.

As the HP-67 sets flag 3 when data has been input from the keyboard prior to executing go to or subroutine instructions in RUN mode, I presume flags 22 and 23 on the 41 and 42 behave the same way or are they implemented differently?

Thanks.


#3

Yep, you are correct.

Flag 22 detects number entry and flag 23 detects ALPHA entry.

(edited for this additional info)

Usage is the same as flag 3 in the HP67/97, considering that the HP41 also detects ALPHA entry. Any time a number key is pressed (or an ALPHA character is keyed in while in ALPHA mode), related flag is set. So, in a program you want to detect if any number or ALPHA entry occurred:

1 - clear related flag (CF 22 or CF 23)

2 - prepare for data entry (either STOP program execution or PauSE it)

Obs: yes, if the program execution is paused, the HP41 resets pause extension for each number key (or ALPHA key, if applicable) you press; once PauSE expires, program resumes and related flag is set according to data entry

3 - check if any data entry occurred with FS?C 22 (or FS?C 23 for ALPHA) which are closer to the HP67/97 functionality; alternately you can use FS? 22 (or FS?C 23) if you want flag status to remain so you can test it later. Although this is not the same that happens with the HP67/97 (flag 3 is cleared after each FS? 3 instruction), it is somehow an extra functionality.

Hope this helps.

Cheers.

Luiz (Brazil)


Edited: 29 Mar 2012, 1:03 a.m.

#4

As Luiz mentioned, the Flag 3 equivalent on the '41 is Flag 22. That's why the "official" flag command translation table is as follows:

 HP-41 series equivalent for HP67/97
Flag # Set Clear Test
-------------------------------------
0 SF 00 CF 00 FS? 00
1 SF 01 CF 01 FS? 01
2 SF 02 CF 02 FS?C 02
3 SF 22 CF 22 FS?C 22
Please note that on the 67/97 both Flag 2 and 3 are cleared by their test commands, so "F? 2" actually is equivalent to "FS?C 02".

Dieter


Possibly Related Threads…
Thread Author Replies Views Last Post
  hp-67 card reader problem. Marcel Samek 5 3,278 12-09-2013, 09:09 PM
Last Post: Paul Berger (Canada)
  HP-41(CL): The easiest way to transfer FOCAL programs from a Linux PC to the HP-41 Geir Isene 13 5,781 12-05-2013, 02:40 AM
Last Post: Hans Brueggemann
  HP-67 charger Marcel Samek 3 1,798 11-22-2013, 10:45 PM
Last Post: Marcel Samek
  HP Prime equivalent of OBJ-> ? John Colvin 2 1,411 11-18-2013, 07:48 PM
Last Post: John Colvin
  request M.E. pac for HP-67/97 wallet cover scan Ignacio Sánchez 0 1,089 11-06-2013, 09:36 AM
Last Post: Ignacio Sánchez Reig
  HP-67/97 Mechanical engineering PAC cover Ignacio Sánchez 0 1,043 10-30-2013, 04:35 AM
Last Post: Ignacio Sánchez Reig
  HP 67 clear cases Keith Midson 7 2,682 10-14-2013, 11:05 AM
Last Post: Kiyoshi Akima
  HP-67 keyboard repair davorin 1 1,218 10-04-2013, 04:09 AM
Last Post: Katie Wasserman
  HP-67 Card Reader Repair Question aj04062 1 1,539 08-08-2013, 11:15 AM
Last Post: Randy
  HP-50 on Raspberry Pi? The HP-67 come true? Matti Övermark 10 3,405 07-30-2013, 09:40 PM
Last Post: Matti Övermark

Forum Jump: