rejig

HP-42S Flag Mappings
Login

HP-42S Flag Mappings

Flag R47 meaning Details
11 AUTXEQ R47 CARRY uses dedicated HP-42S opcodes, not this flag1
12-13 none
15 ⎙TRACE
16 ⎙NORM flag 15 interaction ignored2
21 PRTEN
22 NUM.IN
23 ALP.IN
24 none
25 IGN1ER
26 QUIET non-programmable on the Okken simulators because it’s a toggle, not discrete set/clear, suiting it for interactive use only
27 none
28 PER. SF/CF/FS?/FC? 28 or 'PER.' ↔ RPER./RCOM, (Free42 RDX./RDX,; thirty RADIX./RADIX,). Query forms stay flag ops.
29 none SF/CF 29 ↔ ICOM,/INONE (35s 1,000 / emit 1000; Rook 1,000 ON/OFF). No R47 SYFL name — stays numbered. FS?/FC? 29 stay flag ops.
30-39 none
40-41 none no R47 getter available3
42 GRAD
43 RAD
44 AUTOFF
45 SOLVING
46 INTING
47 VMDISP
48 ALPHA
49 LOWBAT
50-54 none
55 ⎙ACT
56 LinF
57 LogF
58 ExpF
59 PowerF
60-65 none
66 GROW R47 SF GROW = 42S GROW op; CF GROW = WRAP op
67 none
68-71 n/a base modes controlled individually, not in this bitmap-encoded form4
73 POLAR
74 CPXRES R47 SF CPXRES = 42S CPXRES op; CF CPXRES = REALRES op
75 none
76 WRPEDG
77 WRPEND

  1. ^ R47 CARRY maps to Free42 SC/CC/C? via historical opcodes, not HP-42S flag 11.
  2. ^ The HP-42S interprets 3 distinct states from the combination of flags 15 and 16. Technically enabling normal printing mode should be accompanied by clearing flag 15 to avoid it being overridden by trace mode.
  3. ^ The R47 has all four of the HP-42S number display modes, but as far as I can tell, there is no R47 op for getting the current display mode. If there was, I would not expect it to return a two-bit value encoded in this exact manner, if only because the R47 has more than four such modes. What is more likely is that they will add getters like ENG? that return true when each mode is set. At that point, I’ll want to see a substantial number of existing programs dependent on testing these two flags before adding automatic translation code to rejig.
  4. ^ It would be possible for rejig to map bidirectionally between the two schemes, but it’s more trouble than it’s worth.