Debian Codegraph @

HISTORY

raw
1 2026-05-04: release 3.3.12
2
3 * Fixed RLN and RRN for negative numbers in BSIGNED mode.
4 * Decimal version: More accurate GAMMA for integer arguments.
5
6 2026-01-13: release 3.3.11
7
8 * Added statistics sums to STAT->Σ and CATALOG->STAT menus.
9 * Android version: Fixed initial keyboard focus.
10
11 2025-10-28: release 3.3.10
12
13 * Fixed crash in menu logic.
14
15 2025-10-21: release 3.3.9a (Android only)
16
17 * Another workaround for the buggy vibrator in Android 16. This one is a new
18 option, "use older haptic feedback logic," for phones like the Pixel 10 Pro,
19 where the pre-3.3.8f haptic feedback logic worked, but the new logic
20 introduced in 3.3.8f does not.
21
22 2025-10-15: release 3.3.9
23
24 * When a new program was created by inserting END, the new program could end up
25 being locked initially. Fixed.
26 * Linux version: Fixed beeper when running under Wayland.
27 * Linux version: Replaced built-in XPM icons with PNG ones, for compatibility
28 with certain recent Linux distros.
29 * Windows and MacOS versions: Made the links in the About box more obviously
30 clickable.
31
32 2025-10-10: release 3.3.8f (Android only)
33
34 * Workaround for buggy vibrator in Android 16.
35
36 2025-09-27: release 3.3.8e (Android only)
37
38 * More Android 16 kB compatibility tweaks.
39
40 2025-09-27: release 3.3.8d (Android only)
41
42 * Updated build configuration to support 16 kB page size.
43
44 2025-07-19: release 3.3.8c (Android only)
45
46 * Fixed "No Status" and "Full Screen" modes. These got broken in 3.3.8.
47
48 2025-07-05: release 3.3.8b (Windows only)
49
50 * The size of the main window would not be saved if the app was exited while
51 minimized. Fixed.
52
53 2025-07-04: release 3.3.8a (Android only)
54
55 * Fixed layout for Android 15 and later.
56
57 2025-07-03: release 3.3.8
58
59 * Fixed a couple of rare crashes.
60
61 2025-06-29: release 3.3.7
62
63 * Fixed pasting of 10^X without line number.
64 * Android version: Fixed crash with skins with missing annunciators.
65 * Linux version: Fixed state saving when the app is exited because of a logout,
66 reboot, or shutdown.
67
68 2025-06-10: release 3.3.6a (Android only)
69
70 * Fix for hang during audio playback.
71
72 2025-06-05: release 3.3.6
73
74 * Fixed potential crash on app restart.
75 * Android version: fixed memory leak on app restart.
76
77 2025-06-04: release 3.3.5f (Android only)
78
79 * Fixed potential crash on app restart.
80
81 2025-06-04: release 3.3.5e (Windows only)
82
83 * When the main window was un-minimized, its width could be restored
84 incorrectly. Fixed.
85
86 2025-06-03: release 3.3.5d (Android and iOS)
87
88 * Fix for unreliable state file saving.
89
90 2025-06-01: release 3.3.5c (Android only)
91
92 * Fixed hang on Shift EXIT.
93
94 2025-05-30: release 3.3.5b (Android and iOS)
95
96 * Fix for certain rare crashes.
97
98 2025-05-29: release 3.3.5a (Android only)
99
100 * Fixed a couple of crashes.
101
102 2025-05-21: release 3.3.5
103
104 * Better handling of ACC=0 in INTEG.
105 * More accurate C.E^X-1.
106
107 2025-05-06: release 3.3.4
108
109 * Fixed handling of shared matrices in PUTMI.
110 * Fixed handling of subnormal complex numbers in 1/X.
111 * Added SLN, SRN, and ASRN to CATALOG->BASE.
112 * Fixed skin key highlighting for hardware keyboard keystrokes, when using
113 certain skins with complicated key mappings.
114
115 2025-04-29: release 3.3.3
116
117 * BASE menu: Implemented SLN, SRN, and ASRN. These functions are can be typed
118 as Shift-SL, Shift-SR, and Shift-ASR, respectively, and RJ can now be typed
119 as Shift-LJ.
120 * More accurate DET, INVRT, and matrix division for 2x2 matrices.
121 * When spelling out built-in function names, '-' is now accepted as an
122 alternative for '→', to make conversion functions easier to type.
123 * Menu keys that execute different functions when pressed with Shift now show
124 their alternate function while Shift is active. (This behavior can be
125 disabled and enabled using the new STATIC and DYNAMIC settings in the new
126 MENUS submenu of the MODES menu.)
127 * Decimal version: BS→N and BD→N were rounding their results to 16 digits.
128 Fixed.
129
130 2025-04-25: release 3.3.2
131
132 * RLN, RRN, RLCN, and RRCN did not drop the stack. Fixed.
133
134 2025-04-24: release 3.3.1
135
136 * BASE: Fixed DECINT behavior for -2^(WSIZE-1).
137
138 2025-04-23: release 3.3
139
140 * BASE enhancements: shift and rotate functions, bit manipulation functions,
141 floating-point conversions, and optional digit grouping. See the Free42 web
142 site for all the details.
143
144 2025-04-10: release 3.2.8
145
146 * Fixed crash in RCOMPLX/PCOMPLX when the stack is empty (NSTK mode).
147
148 2025-03-29: release 3.2.7a (Linux only)
149
150 * The "Edit Keyboard Map" menu item would show a check mark when selected,
151 which it shouldn't. That menu item launches a text editor, it doesn't toggle
152 a mode. Fixed.
153
154 2025-03-17: release 3.2.7
155
156 * Windows, MacOS, and Linux versions: Added "Edit Keyboard Map" option to the
157 Help menu. Also, added a section about keyboard map customization in the
158 README.txt file.
159 * iOS version: More efficient sorting in file selector.
160 * Android version: Now distributing optimized APKs.
161
162 2025-03-11: release 3.2.6a (iOS only)
163
164 * The file selector wasn't sorting the directory listing. Fixed.
165
166 2025-03-09: release 3.2.6
167
168 * Made ^ on hardware keyboards type ↑ again. This had changed to ^ when I added
169 that character to the Free42 character set in 3.2.3, but typing it isn't
170 appropriate in an HP-42S emulation.
171
172 2025-03-04: release 3.2.5
173
174 * When looking up built-in functions, ^ and ↑ are now considered equal. This
175 fixes problems with program typing and pasting, and with direct command
176 mapping in certain skins, specifically HP-41G and the Mueck_F42* skins.
177 (Note: this is a related but separate issue from the updates to the Mueck
178 skins' *.raw support files three days ago.)
179
180 2025-03-03: release 3.2.4
181
182 * More accurate integer powers of complex numbers. Specifically: special cases
183 for pure real, pure imaginary, and numbers of the form a+ai and a-ai.
184 * Fixed VIEW for long values.
185 * Windows and Linux versions: Fixed handling of skins with non-zero offsets of
186 the main image (the top left corner of the Skin: line).
187
188 2025-02-16: release 3.2.3
189
190 * Added a few characters to the character set, in order to allow copying and
191 pasting text between Free42 and Plus42 without losing information.
192 * iOS version: Implemented Swipe to Delete in the file selector dialog.
193
194 2025-02-13: release 3.2.2
195
196 * The CUSTOM menu didn't stick reliably, due to a bug introduced in 3.2. Fixed.
197
198 2025-02-07: release 3.2.1
199
200 * Fixed crash when trying to load invalid skins.
201 * Added IDENT function. This returns the app's version number as an integer,
202 in aabbccdd format, with 3.1.12b formatted as 3011202, for example.
203 * XROMs are now decoded immediately when pasting.
204 * iOS version: Removed noise from annunciator area in the Standard-4" and
205 Standard-X skins.
206
207 2025-01-25: release 3.2b (Android and iOS)
208
209 * More keyboard fixes.
210
211 2025-01-24: release 3.2a (Android only)
212
213 * Pop-up keyboard typing fixes.
214
215 2025-01-23: release 3.2
216
217 * Program locking, to prevent accidental editing of programs. This is done
218 using the LOCK and UNLOCK functions. See the Free42 web site for details.
219 * Improved display contrast in the built-in skins.
220 * Android and iOS versions: Pop-up ALPHA keyboard, for easier text entry.
221 * Linux version: Dark Mode support.
222
223 2025-01-01: release 3.1.12b (Android only)
224
225 * Rolling back the beeper fix from the previous release. It was not performing
226 as intended. Back to the drawing board.
227
228 2024-12-28: release 3.1.12a (Android only)
229
230 * Made TONE and BEEP play audio asynchronously. This should fix the occasional
231 crashes caused by those functions hogging the UI too long.
232
233 2024-12-22: release 3.1.12
234
235 * Fixed pasting of GETMI, PUTMI, GETLI, and PUTLI.
236
237 2024-12-13: release 3.1.11
238
239 * Added option to show the active keyboard map superimposed on the skin. The
240 desktop versions have this in the Help menu, and the mobile versions have it
241 in the About dialog.
242 * Added functions for direct access to matrix and list elements: GETMI, PUTMI,
243 GETLI, and PUTLI. See the Free42 web site for details.
244 * iOS and MacOS versions: Improved Dark Mode support.
245
246 2024-11-14: release 3.1.10
247
248 * Now pre-populating state name for States -> More -> Rename.
249
250 2024-10-27: release 3.1.9
251
252 * Implemented GETKEYA. This works like GETKEY, except that it will not wait for
253 a keystroke if no keystrokes are in the keyboard queue, returning 0 instead
254 in that case.
255 * Android version: Fixed crash with relative file imports.
256
257 2024-05-28: release 3.1.8b (Android only)
258
259 * Fixed crash for certain unrecognized key codes from Bluetooth keyboards.
260
261 2024-05-15: release 3.1.8a (Android, iOS, and MacOS)
262
263 * PSE could halt program execution if it was used right after TONE or BEEP.
264 Fixed.
265
266 2024-04-24: release 3.1.8
267
268 * Fixed ALPHA pasting during command entry.
269
270 2024-03-30: release 3.1.7
271
272 * Now recognizing comment delimiters '@' and ';' for program pasting.
273 * More accurate complex ASIN/ASINH.
274
275 2024-03-26: release 3.1.6
276
277 * Accuracy improvements for C.LN1+X, and complex LN, ATAN, and ATANH.
278
279 2024-03-22: release 3.1.5b (iOS, Windows, and MacOS)
280
281 * Windows version: Fixed display flicker using buffered painting.
282 * iOS and MacOS versions: Changed skin loader to use WKWebView.
283
284 2024-03-21: release 3.1.5a (Windows only)
285
286 * Reduced display blurriness when the main window is resized.
287
288 2024-03-07: release 3.1.5
289
290 * Direct command mapping now supports alternate mappings for ALPHA mode.
291 * Windows version: Fixed a couple of display glitches.
292
293 2024-03-04: release 3.1.4g (Windows, MacOS, and Linux)
294
295 * Windows, MacOS, and Linux versions: Constraining print-out window height to
296 multiples of 18 pixels, that is, to a whole number of lines.
297 * Windows version: Fixed skin rendering problem in Windows Vista.
298 * Linux version: Fixed a few bugs related to main window resizing.
299
300 2024-03-01: release 3.1.4f (Linux only)
301
302 * Resizable main window.
303 * Ctrl-D shortcut for Clear Print-Out.
304
305 2024-02-28: release 3.1.4e (iOS, Windows, and MacOS)
306
307 * iOS version: Fixed crash when sharing on iPad.
308 * Windows version: Σ+ looked like it was pressed at startup. Fixed.
309 * MacOS version: Fixed crash when making the main window too small.
310
311 2024-02-26: release 3.1.4d (Windows only)
312
313 * Resizable main window.
314 * Ctrl-D shortcut for Clear Print-Out.
315
316 2024-02-21: release 3.1.4c (MacOS only)
317
318 * Resizable main window.
319 * Command-D shortcut for Clear Print-Out.
320
321 2024-02-14: release 3.1.4b (iOS only)
322
323 * iPad support.
324
325 2024-02-09: release 3.1.4a (Android only)
326
327 * Fixed Alt-key handling.
328
329 2024-02-09: release 3.1.4
330
331 * Keyboard mapping fixes.
332 * Android version: Support for external keyboards.
333 * Linux version: Changed ALSA device from "plughw:0,0" to "default".
334
335 2024-01-24: release 3.1.3a (Android only)
336
337 * Fixed crash in File Management Menu.
338 * Fixed crash when importing or exporting to cloud storage.
339
340 2024-01-17: release 3.1.3
341
342 * Added C.LN1+X and C.E^X-1 functions. These are complex-capable versions of
343 LN1+X and E^X-1.
344 * Fixed pasting of strings that start with E.
345 * Binary version: When converting binary to decimal, only use 17 digits when
346 actually needed. This prevents 0.1 from turning into 1.0000000000000001e-1,
347 for example.
348 * iOS version: Support for external keyboards.
349
350 2023-12-18: release 3.1.2b (Android only)
351
352 * Fixed file access for Android >= 11.
353
354 2023-12-12: release 3.1.2a (iOS and MacOS)
355
356 * Fixed crash when loading skin images with local colormaps, caused by a bug in
357 Xcode 15.
358
359 2023-12-01: release 3.1.2
360
361 * CSLD? did not handle intervening XEQ/RTN. Fixed.
362 * FUNC did not detect previous FUNC/LNSTK/L4STK. Fixed.
363
364 2023-11-29: release 3.1.1
365
366 * In the matrix / list editor (EDIT and EDITN), GOTO would prompt for a column
367 even when editing a list, and any column number other than 1 would cause an
368 error. Lists are one-dimensional, so the user should only be asked for a row.
369 Fixed.
370 * iOS and MacOS versions: ASSIGN "" didn't work, because the second ENTER
371 wasn't being handled correctly. This was caused by an optimizer bug in
372 Apple's latest compiler. Fixed.
373
374 2023-11-15: release 3.1
375
376 * EDIT, EDITN, and INDEX now support editing lists, nested lists, empty lists,
377 and matrices within lists. See the Free42 web site for details.
378 * FUNC now hides the caller's RPN stack, so user-defined functions can use
379 functions like CLST and R↓ without causing side effects.
380 * User-defined functions can now be made to support 'stack lift disable'
381 properly. For functions using FUNC, this happens automatically, and other
382 functions can use the new CSLD? function (Caller's Stack Lift Disabled?).
383 * FNRM and UVEC, when called with very large parameters, could get incorrect
384 results due to overflows in intermediaries. Fixed.
385 * Fixed parameter bounds check in PIXEL.
386 * Windows, MacOS, and Linux versions: Keyboard maps now support separate
387 mappings for unshifted and shifted numeric keypad keys, and unshifted and
388 shifted Space.
389
390 2023-08-11: release 3.0.21
391
392 * INPUT would crash if R/S was pressed while the stack was empty, in NSTK mode.
393 Fixed.
394 * ANUM would consider a decimal point or comma by itself as zero, instead of
395 ignoring it. Fixed.
396 * EDIT, EDITN, and INDEX didn't clear flags 76 and 77 (matrix edge wrap and end
397 wrap), while they should. Fixed.
398 * Decimal version: In HMS+ and HMS-, fixed handling of cases where either or
399 both of the arguments has a number of minutes or seconds >= 60. (The binary
400 version did not have this bug.)
401 * Binary version: Max digits for SHOW increased to 17. This was necessary
402 because 16 digits was actually never enough to begin with. For example, 5 1/X
403 and 5 SQRT X^2 1/X both returned a result that looked like 0.2 in SHOW, even
404 though they are different, as can be easily verified with X=Y? or by
405 subtracting them. It takes 17 decimal digits to ensure that different binary
406 numbers will always be rendered as different decimal numbers.
407
408 2023-04-19: release 3.0.20
409
410 * Changed Σ+/Σ- so that, in NSTK mode, they will accept a single real argument,
411 assuming Y=0 in that case.
412 * Tuned TONE frequencies to A440 scale.
413
414 2023-04-10: release 3.0.19a (iOS and MacOS)
415
416 * Copy in PRGM mode was dropping line 01, because of an optimizer bug in the
417 latest compiler. Reduced optimization level from -Os to -O1 to work around
418 this problem.
419
420 2023-04-05: release 3.0.19
421
422 * Fixed crash in RTNERR when switching back to NSTK mode after FUNC/L4STK.
423 * Fixed ASSIGN "" in programs.
424 * Added PRREG to the PRINT menu.
425 * NN→S now ignores the display mode and always acts like ALL mode is active.
426 The idea being that if you care about the display mode, you'll probably be
427 using N→S, and you only need NN→S if you specifically want to see full
428 internal precision.
429
430 2023-03-17: release 3.0.18
431
432 * EDIT, EDITN, and INDEX now support lists, acting like they are 1-column
433 matrices. (Empty lists are not supported, they must have at least one
434 element. This limitation will be removed in a future release. Note that you
435 can create a new 1-element list by simply doing NEWLIST 0 +.)
436 This includes STOIJ, RCLIJ, STOEL, RCLEL, I+, I-, J+, J-, ←, ↑, ↓, →, INSR,
437 DELR, and DIM.
438 * Added PRREG. Because PRV "REGS" is not a good substitute.
439 * Added NN→S. This works like N→S (convert number to string on the stack), but
440 without the 12-digit mantissa length limit, so you get full precision in ALL
441 mode.
442 * Fixed stack lift handling in DELR and STOFLAG.
443 * Fixed pasting 1/X, 10^X, and 4STK, when pasted without line number and with
444 trailing space.
445
446 2022-12-14: release 3.0.17
447
448 * Fixed a couple of bugs in Paste of scalars in BINM, OCTM, and HEXM modes.
449 * Fixed pasting of U+22A2 and U+22A6 ('append' characters used by i41CX and
450 Emu42).
451
452 2022-10-29: release 3.0.16
453
454 * SOLVE does a better job of reporting Sign Reversal when a function changes
455 sign around a vertical asymptote, instead of reporting it as a root.
456 * BASE: complex numbers were being copied in non-decimal bases in some cases.
457 * Better OCTM handling in SHOW.
458 * Fixed number entry in PRGM mode when BINM/OCTM/HEXM active.
459 * No longer setting flag 22 if number entry ends with DROP in NSTK mode.
460 * Added WIDTH and HEIGHT to CATALOG->MISC; moved A...F from CATALOG->MISC to
461 CATALOG->BASE.
462
463 2022-10-01: release 3.0.15
464
465 * Fixed crash in SHOW for certain complex numbers.
466 * Added A...F function. This allows programs to turn on HEXM mode with the
467 A...F menu activated.
468 * iOS version: Added Calculator / Print-Out swipe direction configuration
469 option to Preferences.
470 * Android, iOS, and MacOS ARM versions: Fixed incorrect Out of Range error
471 returned by BASE functions in certain cases, e.g. BRESET 64 WSIZE 1 ENTER
472 BASE÷.
473
474 2022-08-13: release 3.0.14
475
476 * Fixed (re,im) complex pasting. This was broken by localized copy & paste.
477 * Special cases for pure real and pure imaginary in SQRT.
478
479 2022-06-18: release 3.0.13a (iOS and MacOS)
480
481 * Fixed skin rendering for iOS 16 and MacOS 13.
482
483 2022-06-16: release 3.0.13
484
485 * Fixed handling of invalid number keys in BINM and OCTM modes.
486 * Windows and Linux versions: Fixed handling of non-ASCII separator characters.
487
488 2022-06-14: release 3.0.12
489
490 * Localized Copy & Paste.
491 * More accurate complex ACOS and ACOSH.
492 * SOLVE now handles functions that are always positive or always negative a bit
493 better, reporting Extremum when the iteration appears to be bouncing around
494 without improving, instead of continuing indefinitely.
495 * Added XVIEW function. This works like AVIEW, except it takes the string from
496 the X register instead of ALPHA, so it avoids the 44-character length limit.
497 * Android version: Now removes itself from the task list if exited using OFF.
498
499 2022-05-05: release 3.0.11a (Windows and Linux)
500
501 * More efficient display updating, so long-running programs that update the
502 display a lot don't waste a lot of CPU time repainting the display faster
503 than the human eye can see, and spend more time actually running the program
504 instead. Note that this update is for Windows and Linux only, because the
505 Android, iOS, and MacOS versions already worked this way.
506
507 2022-05-01: release 3.0.11
508
509 * Implemented LCLV: CLV for local variables only. The regular CLV now works on
510 global variables only.
511 * RND in ALL mode now rounds like in SCI 11, instead of doing nothing.
512 * HEAD, when applied to a string in a numbered register, would corrupt the
513 string if it was 16 characters long before the call (8 characters in the
514 binary version). Fixed.
515 * Y^X accuracy improvements with integer X.
516 * Fixed DUPN 2 in 4STK mode. It used to duplicate X into T and Y into Z.
517 DUPN in NSTK mode was not affected by this bug.
518 * Added WIDTH and HEIGHT functions. These always return 131 and 16,
519 respectively; this may not seem very useful, but can be used in programs that
520 are meant to work in both Free42 and Plus42, to allow them to take advantage
521 of the larger display when running in Plus42.
522 * L4STK didn't pad the stack to 4 levels when used without FUNC. Fixed.
523 * Binary version: ROTXY and DATE+ rounded toward negative infinity instead of
524 rounding toward zero. Fixed.
525 * Windows version: Comes in 64-bit and 32-bit versions now.
526 * Windows and Linux versions: Now support fractional display scaling.
527
528 2022-01-27: release 3.0.10
529
530 * Added →LIST, LIST→, SKIP, CPXMAT?, and TYPE? functions, and changed the name
531 of PRMVAR to PGMVAR. See the Free42 web site for details.
532 * INPUT caused incorrect printer output in NORM and TRACE modes. Fixed.
533 * Escape sequences for undefined characters in Copy and Paste and printer
534 output.
535 * When the Y register contains a string or list, in RUN mode, the + key now
536 performs APPEND.
537
538 2021-12-29: release 3.0.9a (Windows only)
539
540 * Fixed crash when launching without state
541
542 2021-12-26: release 3.0.9
543
544 * Fixed handling of single-character strings in programs.
545 This was broken in the previous release.
546
547 2021-12-23: release 3.0.8
548
549 * Auto-repeat for XSTR, and ALPHA arguments in general.
550 * Windows, MacOS, and Linux versions: Keyboard mapping for CursorLeft to ←,
551 Shift-CursorLeft to <← and ↑, CursorRight to →, Shift-CursorRight to →> and
552 ↓, and Delete to DEL, in menus.
553 * Android version: Fixed blurry print-out on certain devices.
554
555 2021-11-07: release 3.0.7
556
557 * A2LINE now handles strings that start with characters 127-255 in a more
558 sensible manner. Also, added A2+LINE function for generating appended
559 strings, since the old trick of using a string starting with character 127 no
560 longer works.
561 * More accurate complex TAN and TANH.
562 * RND did not handle large numbers correctly, failing to round off as many
563 digits as necessary in certain cases. Fixed.
564 * Σ+ and Σ- always wanted two arguments, even in NSTK mode, when X contained a
565 real matrix. Fixed.
566 * Copy and Paste now handle list objects.
567
568 2021-07-27: release 3.0.6
569
570 * Added string and list functions. See the Free42 web site for details.
571 * Added lowercase letters to the menu font.
572
573 2021-07-01: release 3.0.5
574
575 * L4STK could crash, due to an incorrect LNSTK fix in 3.0.2. Fixed.
576 * Fixed a couple of skin macro bugs: Failure to start program execution when
577 EXIT was pressed during VARMNU1, and UI freeze when starting program
578 execution in some cases.
579
580 2021-06-10: release 3.0.4
581
582 * Fixed bug in complex LU decomposition, which could lead to incorrect results
583 in INVRT, DET, and matrix division with complex matrices.
584 * FUNC and RTN now save and restore ERRMSG and ERRNO along with flag 25.
585 * Added RCOMPLX and PCOMPLX functions. These work like COMPLEX, except they
586 ignore flag 73 (POLAR mode) and instead always assume rectangular or polar
587 mode, respectively.
588 Also modified X2LINE so it uses RCOMPLX instead of COMPLEX when generating
589 program lines for complex numbers, so the generated code is correct
590 regardless of RECT/POLAR mode.
591 * MENU and VARMNU1 tweaks: The programmable menu is now cancelled whenever an
592 operation is performed that clears the RTN stack, such as BST, or GTO in RUN
593 mode. And in VARMNU1, don't trap EXIT when the menu was activated in RUN
594 mode, or when an operation was performed that cleared the RTN stack.
595 * Binary version: Fixed WSIZE to allow word size of 53.
596 * Paste fixes: In PRGM and ALPHA modes, Paste now clears any messages that may
597 have been left in the display from previous operations. (In RUN mode, this
598 was already the case.) Also, Paste now sets flag 22 when pasting real or
599 complex scalars into X, and sets flag 23 when pasting in ALPHA mode.
600
601 2021-04-28: release 3.0.3
602
603 * Implemented VARMNU1. This is a variation on VARMENU, with two differences: It
604 allows selecting a variable without having to press its menu button twice;
605 and it catches EXIT, performing CLA RUN when it is pressed.
606 * Implemented X2LINE and A2LINE functions. These non-programmable functions
607 create program lines containing the current contents of the X or ALPHA
608 registers, respectively.
609 * When INDEX or EDITN are performed on a local matrix, while another matrix is
610 already indexed, the IJ pointers are saved, and restored when the current
611 function returns.
612 * RTNERR now accepts a string instead of a numeric argument, so functions can
613 raise error messages other than the eight standard ones.
614 * Implemented ERRNO and ERRMSG functions. These return the error number and
615 error message, respectively, for the last error caught by flag 25.
616 * Implemented XSTR function, for creating strings directly in the X register.
617 * Fixed memory leak in the parameterized comparison functions.
618
619 2021-03-29: release 3.0.2
620
621 * Fixed possible stack corruption or crash due to LNSTK, when big stack mode is
622 already active.
623 * Fixed DROPN crash in 4STK mode.
624 * Fixed matrix editor's GOTO Row/Column when stack empty (big stack mode).
625 * Fixed bounds check bug in AGRAPH. This could cause nothing to be drawn when
626 the pattern was one pixel from being entirely off-screen.
627 * Android version: Fixed filesystem access in Android 10.
628
629 2021-03-04: release 3.0.1
630
631 * Implemented a work-around for a bug in the decimal floating-point library
632 that could cause inaccurate results for several complex functions.
633 * Implemented PRMVAR function. This prints all the variables associated with
634 the given LBL through MVAR declarations.
635 * Implemented new comparison functions, for comparing arbitrary arguments to X
636 or to zero: X=?, X<?, 0=?, etc.
637 * Added error number 8 to RTNERR, to allow user-defined functions to raise the
638 Too Few Arguments error condition.
639 * RTN from the keyboard, and other actions that cause the RTN stack to be
640 cleared, now restore the stack mode if it had been changed locally using
641 LNSTK or L4STK.
642 * Windows version: Fixed a bug that could cause programs with many ALPHA labels
643 to show up as blank lines in the Export Programs dialog.
644
645 2021-02-22: release 3.0
646
647 * Added dynamic stack option. See the Free42 web site for details.
648 * Added the date and time format options to the MODES menu.
649 * Changed the RTNERR function to take the error number from a parameter, rather
650 than from the X register. To prevent existing programs using the old
651 parameter-less RTNERR from breaking, those RTNERRs are converted to the
652 equivalent new instruction, RTNERR IND ST X.
653 * Added PGMMENU function. This shows a menu of ALPHA labels with MVAR
654 instructions, like the top-level menu presented by SOLVER and ∫f(x). It is
655 meant to be used by programs that aim to implement a similar behavior as
656 those built-in menus.
657 * On cold start, now setting the date and time format according to the host
658 operating system's locale settings.
659 * The Free42 extensions to the HP-42S instruction set are now shown in separate
660 sections in CATALOG, rather than at the end of the FCN catalog.
661 * Added STRACE option to PRINT menu. This is the "Stack trace" option, i.e.
662 TRACE mode where the entire stack gets printed, not just X. The option itself
663 is not new, it was implemented in 2.5.21, but the STRACE function, that
664 allows you to set that mode without having to twiddle flags, is new.
665
666 2021-02-02: release 2.5.25
667
668 * Fixed pasting of zero. This was broken in 2.5.21.
669
670 2021-01-17: release 2.5.24a (Android only)
671
672 * Fixed screen rotation issue with Android 11.
673
674 2021-01-13: release 2.5.24
675
676 * Improved user-defined function support. The changes are rather substantial;
677 please check the Free42 web site for details.
678 * The previous release introduced a bug when pasting a program without line
679 numbers, causing numbers to be mangled. Fixed.
680
681 2021-01-06: release 2.5.23
682
683 * Implemented support for user-defined function semantics: stack preservation,
684 RTN with skip, RTN with error. See the Free42 web site for details.
685 * Better handling of number lines: the visual difference between equivalent
686 representations of a number is now preserved, so 1000 stays 1000 and is not
687 turned into 1E3, and numbers that are out of range for the current platform
688 now cause an error message instead of being silently turned into the maximum
689 representable number or zero.
690 * Implemented FMA (Fused Multiply-Add). This simply exposes the underlying FMA
691 function provided by the floating-point hardware or libraries.
692 * In programs, now handles pasting FIX/SCI/ENG with 1-digit argument, for HP-41
693 compatibility.
694
695 2020-11-24: release 2.5.22a (Android only)
696
697 * The previous release was crashing on a lot of devices; apparently the NDK
698 version I used to build it, r21b, is incompatible with certain older devices.
699 Going back to r19c for now.
700
701 2020-11-23: release 2.5.22
702
703 * Minor UI fixes and improvements: 'Close' menu item (Mac), Copy and Paste in
704 dialogs (Mac), Unicode support in file names (Windows), and pre-populating
705 file names in file selection dialogs (all versions).
706 * Implemented LASTO. This is related to LSTO like ASTO is related to STO.
707 * Implemented No-Operation (NOP) function. This function does nothing, as its
708 name suggests, and can be useful when using ISG for counting without an upper
709 bound, for instance. The function is encoded using the 0xF0 opcode, which is
710 sometimes used on the HP-41 for the same purpose.
711 * On the real HP-42S, GETKEY halts program execution when R/S, EXIT, or Shift-
712 EXIT are pressed. In Free42, however, Shift-EXIT did not cause program
713 execution to halt. Fixed.
714 * Implemented GETKEY1 function. This works like the regular GETKEY, except it
715 only halts on R/S, allowing programs to implement custom behaviors for EXIT
716 and Shift-EXIT.
717 * STOFLAG didn't update the G and RAD annunciators when flags 42 or 43 were
718 changed. Fixed.
719 * Implemented range option for STOFLAG: with the flags in Y and a number bb.ee
720 in X, only flags bb through ee are restored, while the others are untouched.
721 If ee is zero, only flag bb is restored. This mode of operation exists in the
722 HP-41 Extended Functions module and in the HP-41CX, but was missing in the
723 Free42 implementation.
724 * Binary version: Changed maximum WSIZE from 52 to 53.
725 * MacOS version: Building universal binary now, with Intel and ARM (Apple
726 Silicon) support.
727 * iOS version: Fixed crash when saving print-out using Share -> Save Image.
728
729 2020-10-24: release 2.5.21
730
731 * Implemented ANUM, X<>F, RCLFLAG, and STOFLAG functions. See the Free42 web
732 site for details.
733 * Implemented "stack trace" mode: when flags 15 and 16 are both set, the
734 printer prints in a variation of TRACE mode, printing not just X after every
735 instruction, but the entire stack.
736 * Pasting long numbers could return incorrect results if many leading zeroes
737 were present. Fixed.
738 * Real/complex and complex/complex division could return Not a Number for
739 certain inputs, e.g. 1e3200 ENTER COMPLEX ENTER /. Fixed. Also applied a
740 similar fix to complex 1/X.
741 * Complex matrix division, INVRT, and DET would return incorrect results for
742 large matrices (20x20 or greater). Fixed.
743
744 2020-09-20: release 2.5.20
745
746 * Fixed INTEG behavior when integrand returns non-real. It used to treat such
747 results as zero while it should raise an error instead.
748 * Fixed DATE+, DDAYS, and DOW when flags 31 and 67 are both set.
749 This combination of flags is never set by the DMY, MDY, and YMD functions,
750 but it can happen when you execute YMD followed by SF 31.
751 * Fixed garbage in SHOW when BIN overflows to HEX.
752 * During TRACE, print blank line before LBL, like the HP-41.
753 * When ISG reached zero, the loop control variable would end up having the
754 wrong sign. For example, -1.00001 ISG ST X => -0.00001, should be 0.00001.
755 Fixed.
756 * Added [FIND], [MAX], and [MIN] to the FCN catalog. These are undocumented
757 functions from the HP-42S that were previously not shown in the catalog, even
758 though they did work.
759 * COMB could return Out of Range in certain cases where the correct result was
760 not, in fact, out of range. For example, 20408 ENTER 10204 COMB.
761 * ISG and DSE with a named variable would crash if that variable did not exist.
762 Fixed.
763
764 2020-07-05: release 2.5.19
765
766 * Fixed stack lift behavior with GETKEY.
767
768 2020-04-11: release 2.5.18
769
770 * Fixed pasting of 1/X and 10^X without line number.
771 * Android version: Updated HEADING implementation so it works on phones that no
772 longer provide the old compass API.
773 * iOS version: Fixed double-import, when loading Shared files.
774
775 2020-02-27: release 2.5.17b (Android only)
776
777 * Removing the n-key rollover and swipe-to-switch that were introduced in the
778 previous release; 2.5.17a suffers from missed keystrokes and erratic swipe
779 detection, caused by the new logic. Since I appear to be unable to do proper
780 testing on these features with my own phone, I am scrapping them and have no
781 plans to re-introduce them. (I am not removing them from the iOS version,
782 since they appear to be working fine there.)
783
784 2020-02-22: release 2.5.17a (Android and iOS)
785
786 * Android version: Can now switch between the calculator and print-out by
787 swiping sideways. This feature is experimental and may not work on all
788 phones.
789 * Android version: Implemented n-key rollover.
790 * iOS version: Fixed initial print-out scroll position. Version 2.5.17
791 introduced a bug where it would not scroll all the way to the bottom
792 initially.
793
794 2020-02-13: release 2.5.17 (iOS, Windows, MacOS, and Linux)
795
796 * Fixed minor memory leak in Paste.
797 * iOS version: Implemented n-key rollover.
798 * iOS version: Fixed several minor bugs and inconsistencies in landscape mode.
799 * iOS and MacOS versions: Print-out now grows from the top down, rather than
800 from the bottom up, to be consistent with these types of UIs in general, and
801 specifically with Free42 on other platforms.
802
803 2020-02-08: release 2.5.16b (iOS only)
804
805 * Can now switch between the calculator and print-out by swiping sideways.
806
807 2020-02-02: release 2.5.16a (iOS only)
808
809 * Fixed file import from the Files app.
810
811 2020-01-25: release 2.5.16
812
813 * Fixed GETKEY behavior with skins that use direct command mapping.
814 * Fixed GETKEY behavior with physical keyboards in ALPHA mode.
815
816 2020-01-18: release 2.5.15
817
818 * Some fixes to Paste to improve compatibility with Emu42 text.
819 * Fixed Skin menu behavior: user-loaded skins now take priority over built-in
820 ones, and built-in skins that are overridden by user-loaded ones are now
821 shown grayed out in the menu.
822 * Linux version: Implemented XDG Base Directory Specification compliance:
823 Moved Free42 directory from $HOME/.free42 to $XDG_DATA_HOME/free42, or
824 $HOME/.local/share/free42 in case XDG_DATA_HOME is unset or empty.
825 Also, now looking for skins in free42 and free42/shared under $XDG_DATA_DIRS,
826 or under /usr/local/share:/usr/share if XDG_DATA_DIRS is unset or empty.
827 Skins will also still be looked for in the Free42 directory.
828
829 2020-01-11: release 2.5.14
830
831 * Some fixes to Paste to improve compatibility with HP-41 text.
832
833 2020-01-11: release 2.5.13a (Linux only)
834
835 * Another thin-dark-line fix, this time for GDK_SCALE > 1 on certain platforms,
836 including Raspbian 10.
837
838 2020-01-09: release 2.5.13
839
840 * When REGS was shared, ASTO nn could store the character data into the wrong
841 copy of the matrix. Fixed.
842
843 2020-01-07: release 2.5.12c (Linux only)
844
845 * When the print-out area was still growing, i.e. hadn't reached its maximum
846 height of 30,000 pixels yet, it was not being repainted in a timely manner.
847 Bug introduced by the switch to GTK 3; did not affect early GTK 3 versions
848 but became apparent in Ubuntu 18.04 and 19.10. Fixed.
849
850 2020-01-03: release 2.5.12b (Linux only)
851
852 * Made repaint logic more efficient, also making it work under Wayland.
853
854 2019-12-01: release 2.5.12a (Linux only)
855
856 * In scaled mode (GDK_SCALE greater than 1), bitmap smoothing causes drawing of
857 the display bitmap to bleed outside the display rectangle, and this can lead
858 to thin dark lines being left behind around the display, and that looks ugly.
859 A similar problem exists in the Android version, and I implemented a similar
860 fix here, namely, to always repaint the entire display when the core updates
861 it, and to update a slightly larger rectangle than the display itself.
862 Because this fix can cause programs to run slower on older systems, I added
863 an option to Preferences to switch back to using the old logic.
864
865 2019-11-28: release 2.5.12 (Windows and Linux)
866
867 * Linux version: Switched from GTK 2 to 3, for HiDPI support.
868 * Windows and Linux versions: Removed the "Single Instance" option. Both now
869 always run in Single Instance mode; what was removed was the possibility to
870 turn *off* Single Instance and allow multiple instances to run concurrently.
871 That never worked well, and in the Windows version, there was never any
872 reason to allow it. In the Linux version, there was a reason, which was that
873 Single Instance was hard to implement and did not work well in all
874 environments; with GTK 3, Single Instance is supported by the platform, and
875 there is no longer any reason not to use it.
876
877 2019-10-25: release 2.5.11
878
879 * Windows version: Program export in "raw" format performed LF-to-CRLF
880 translation on the output file, turning XEQ 10 into XEQ 13 LBL 09, among
881 other things. Bug introduced in 2.5.
882 * Decimal version: During number entry, if you backspaced over a negative
883 number until only the minus sign remained, that minus would not be parsed
884 correctly, and you could get <Not a Number>. For example, 1 +/- <- ENTER.
885
886 2019-10-11: release 2.5.10
887
888 * The index range check in R<>R was faulty, allowing a row index equal to the
889 number of rows plus one to be used, which in turn would cause memory
890 corruption. Fixed.
891 * Android version: When renaming the currently active state, the state name was
892 not updated in the shell settings, with the result that upon exit, the state
893 would still be saved under the old name, and at the next launch, would also
894 be loaded under the old name. The net effect of all this was that instead of
895 ending up with a renamed state, you'd end up with a copy.
896
897 2019-10-05: release 2.5.9b (Android and iOS)
898
899 * Android version: Could launch with the wrong screen orientation under certain
900 circumstances. Fixed.
901 * iOS version: Greater range of key click volume levels.
902 * iOS version: Added sanity check for raw files imported using Copy to Free42.
903
904 2019-09-28: release 2.5.9a (Android only)
905
906 * Several changes in file handling. No longer associates itself with all files,
907 so Free42 won't be offered to open files of any types other than raw and f42.
908 Unfortunately, this also means that opening f42 files directly from email
909 attachments no longer works; state files will now need to be downloaded, then
910 opened using the file selection boxes, using More -> Import in the States
911 view. Cumbersome, but it's the best I can do given Android's lack of file
912 extension filtering for email attachments.
913 * Added a slider for the key click volume; now offers nine levels plus silence.
914 * Changed the haptic feedback slider to a logarithmic scale, adding a lot more
915 resolution to the weaker end of the scale, for those with devices that are
916 capable of it and fingers sensitive enough to feel it.
917
918 2019-09-21: release 2.5.9
919
920 * Importing programs would insert the programs at the current location, instead
921 of at the end of memory. Bug introduced in 2.5 or one of the subsequent
922 revisions. Now fixed.
923 * iOS version: Added support for Dark Mode in iOS 13.
924 * Android version: Added file extension filtering for file, http, and https URL
925 schemes. This should make Free42 not appear in as many file selection
926 contexts as before, without making it disappear from contexts where it should
927 be offered as an option. Note: file extension filtering is not supported with
928 the content scheme, which means Free42 will still show up in all contexts
929 where attachments are opened, and depending on the file manager used, also
930 when opening files from file managers.
931
932 2019-09-20: release 2.5.8
933
934 * When loading a corrupted state file causes a crash, the state file is now
935 renamed so that it won't be read again, and the app will start with Memory
936 Clear the next time it is launched, instead of crashing again and again.
937 * Android and iOS versions: Fixed a couple of import-related crashes.
938
939 2019-09-16: release 2.5.7
940
941 * SOLVE did not always return the second-best guess in Y. Fixed.
942 * Android version: Changed haptic feedback preference setting from on/off
943 switch to a four-level slider, for off/light/medium/heavy feedback.
944 * Android version: Reduced the GPS update interval for LOCAT from 60 seconds to
945 5 seconds.
946 * Android version: Sharing an empty print-out would crash. Fixed; now it pops
947 up a message instead.
948 * Android version: Fixed crashes in state file import activity: intents without
949 data, and SecurityException and UnsupportedOperationException while trying to
950 get attachment file names.
951 * iOS version: Changed haptic feedback preference setting from on/off switch to
952 a four-level slider, for off/light/medium/heavy feedback. Also, changed key
953 clicks setting from on/off switch to a three-way slider, for off/standard/wav
954 click sounds, where standard is the old system key click sound, and wav is a
955 wav file that sounds a bit louder.
956 * iOS version: Making the single-threaded logic permanent. The complexity of
957 the multi-threaded event handling logic makes the code too hard to maintain,
958 while the benefits in terms of performance are marginal. The only noticeable
959 disadvantage of the single-threaded approach was poor performance in display-
960 intensive code, and that was mitigated simply by repainting less
961 aggressively.
962 * iOS version: Preferences view now expands to fill the width of the screen.
963 * MacOS version: Making the app single-threaded. This is the same change as in
964 the iOS version; the aim is to simplify the code, making it more robust,
965 while sacrificing very little in terms of performance.
966
967 2019-09-09: release 2.5.6a (iOS only)
968
969 * iOS version: Made the app single-threaded. Interim version, to deal with the
970 mysterious crashes in [CalcView drawRect:].
971
972 2019-09-08: release 2.5.6
973
974 * SOLVE would not always return the best function value in Z. Fixed.
975 * iOS version: There have been crashes occurring in the display update logic,
976 due to some not yet understood condition that appears to affect faster
977 iPhones (8, X, XR, XS). I implemented a fix that appears to prevent these,
978 but at a cost in terms of performance, i.e. the emulation is a bit slower
979 now. I'm working on a proper fix, which will eliminate these problems and
980 restore maximum performance.
981
982 2019-09-06: release 2.5.5
983
984 * Moved the settings "Singular Matrix Error," "Matrix Out Of Range," and "Auto-
985 Repeat" from the core state (the *.f42 files) to the shell state, so they are
986 not affected by switching core states.
987 * Fixed a bug that caused State File Corrupt when reading a state containing a
988 zero-length string.
989 * iOS version: Fixed a couple of bugs that were causing memory and state file
990 corruption and crashes.
991 * iOS and MacOS versions: Fixed a couple of bugs that were causing crashes in
992 the States window.
993 * Android version: The States window would ask for confirmation to revert the
994 current state back to the last version saved, even when the user was trying
995 to switch to a different state. Fixed.
996
997 2019-09-02: release 2.5.4 (iOS only)
998
999 * Fixed a crash when the States window was opened the very first time the app
1000 was run after a new install.
1001 * Fixed a bug that could cause the hostname lookup for the HTTP Server window
1002 to fail.
1003
1004 2019-09-01: release 2.5.3
1005
1006 * Invalid state files (corrupt, or created by an incompatible newer version of
1007 Free42) are now renamed, so they are not lost when a new state is written,
1008 and can be retrieved for post-mortem analysis.
1009
1010 2019-08-31: release 2.5.2
1011
1012 * In the States window, renamed Reload to Revert, and added a confirmation
1013 dialog, since that is a potentially destructive action.
1014 * When programs were imported from raw files, empty programs were sometimes
1015 being created unnecessarily. Harmless but slightly annoying. Fixed.
1016 * Android and iOS versions: Added "share" option for Print-Out view.
1017 * Android and iOS versions: Added "share" option for programs in raw format.
1018 * Android and iOS versions: Now import raw files directly from email
1019 attachments and web links.
1020
1021 2019-08-28: release 2.5.1
1022
1023 * Fixed bug in 2.5 that caused string elements in real matrices (including the
1024 numbered registers) to be written incorrectly in the state file, leading to
1025 memory corruption and crashes when the state file was read back in.
1026 * iOS version: Now makes sure that the current state shows up in the list in
1027 the States view, even if it is opened right after a fresh install or right
1028 after upgrading from a version before 2.5.
1029
1030 2019-08-25: release 2.5
1031
1032 * Added state file manager, for loading, saving, and switching between,
1033 calculator states. The state files are in a platform-neutral format, so they
1034 can be exchanged between Free42 instances running on different devices.
1035 * Fixed crash in RTN when a local variable was hiding the indexed matrix.
1036
1037 2019-07-12: release 2.4.2
1038
1039 * Windows version: The new Ctrl-A, Ctrl-I, and Ctrl-T shortcuts (Paper Advance,
1040 Copy Print-Out as Image, and Copy Print-Out as Text) didn't work, because I
1041 hadn't updated the corresponding accelerator resources. Fixed.
1042 * Windows and Linux versions: All Ctrl-<Key> shortcuts now work even when the
1043 Print-Out window is on top.
1044 * Android, iOS, and MacOS versions: When loading a skin in the skin browser,
1045 they now force an un-cached load, so skin fixes can actually be loaded by
1046 users without delay, and without having to resort to side-loading.
1047 * Android and iOS versions: Changed default landscape skin, from desktop/42ct
1048 to android/SGS-L. The old skin had keys below the display that didn't line up
1049 with the menus; you really have to have Σ+ 1/x √x LOG LN XEQ
1050 below the display for a consistent user interface.
1051 * iOS version: Changed Standard-X skin, from Ehrling42sl.X to Matt42X. The old
1052 skin was rather blurry; the new skin has nice and crisp text for all key
1053 labels.
1054
1055 2019-07-03: release 2.4.1
1056
1057 * Fixed several bugs in BWRAP mode.
1058
1059 2019-07-01: release 2.4
1060
1061 * Implemented configurable word size for BASE functions (up to 64 bits, or 52
1062 in Free42 Binary), unsigned mode, and wrap mode. The new settings are all in
1063 a new row in the MODES menu.
1064 * Android, iOS, and MacOS versions: Added some feedback in the skin loading
1065 window: the "Load" button changes to "..." while a page load is in progress;
1066 "Load" is enabled only when a GIF or layout file is being displayed, i.e.
1067 something that could actually be a skin, and therefore loadable; and finally,
1068 when Load is pressed to load a skin, an alert box is now shown to report
1069 success or failure.
1070
1071 2019-06-25: release 2.3.1a (Android only)
1072
1073 * Adding -mfpu=vfp to compilation flags when building the Intel library for
1074 armv7. Apparently, with NDK r19c, Neon is enabled by default, but Neon is not
1075 supported on all armv7 Android devices, so this setting is causing 2.3.1 to
1076 crash on certain phones. (2.2.1b and earlier were built with r4b, which did
1077 not have this problem.)
1078
1079 2019-06-25: release 2.3.1
1080
1081 * Android version: Implemented the 2.3 features, with the exception of Copy
1082 Print-Out as Image. (Apparently Android doesn't support images on the
1083 clipboard.)
1084 * MacOS version: Copy Print-Out as Image didn't handle wrap-around in the
1085 image buffer correctly. Fixed.
1086 * Windows and Linux version: Implemented Paper Advance, Copy Print-Out as Text,
1087 and Copy Print-Out as Image.
1088 * iOS version: Fixed the top-of-screen menu trigger so that it no longer
1089 sabotages keys that are also in that area, as in the HP_Mega_42 and SGS-L
1090 skins. This is the same fix I made for Android in release 1.5.8d. I didn't
1091 think to fix this for iOS at the time, probably because the iOS version
1092 didn't support landscape mode then.
1093
1094 2019-06-15: release 2.3.0a (iOS only)
1095
1096 * Added the 2.3 features.
1097 This should have been called version 2.3 as well, but a mistake with the
1098 release build forced me to use the next higher version number instead.
1099
1100 2019-06-12: release 2.3 (MacOS only)
1101
1102 * Added Load Skins feature, for downloading and installing skins from the
1103 Internet.
1104 * Added Delete Skins feature.
1105 * Added Paper Advance for Print-Out window.
1106 * Added Copy Print-Out as Text and Copy Print-Out as Image.
1107
1108 2019-05-29: release 2.2.1d (source code only)
1109
1110 * Migrated the Android project from Eclipse with ADT to Android Studio.
1111 Also building the native code for x86 and x86_64 now. Not sure if I should
1112 release that, but it is convenient for testing in the Android Emulator, now
1113 that Google no longer releases ARM system images for the emulator.
1114 The minimum Android API level requirement went from 8 to 14 (2.2 to 4.0), but
1115 that seems like an acceptable price to pay.
1116
1117 2019-05-24: release 2.2.1c (iOS only)
1118
1119 * Fixed crash in Paste when clipboard contained no text.
1120
1121 2019-05-20: release 2.2.1b (Android only)
1122
1123 * Made the app explicitly single-instance (by adding
1124 launchMode="singleInstance" to Free42Activity in the app manifest).
1125 This should eliminate the remaining null-pointer crashes in the native code,
1126 and also prevent State File Corrupt scenarios.
1127
1128 2019-05-19: release 2.2.1a (Android only)
1129
1130 * Added 64-bit native code.
1131
1132 2019-05-11: release 2.2.1
1133
1134 * Added side margins to print-out window.
1135 * PRLCD is now supported in "Print to Text," using Unicode 2x2 block elements.
1136 * Flag 64 is now set or cleared to indicate the Shift state during the most
1137 recent key press. This can be used by MENU handlers to implement different
1138 behaviors for unshifted and shifted menu keys.
1139 * Windows version: Changed sounds from using the Beep() function to playing
1140 wav sounds using the PlaySound() function, matching the way sounds are played
1141 in the Android, iOS, and MacOS versions.
1142 * MacOS Dashboard version: Didn't recognize comma as decimal key. Fixed.
1143
1144 2019-04-07: release 2.2
1145
1146 * Implemented YMD mode for date functions, using YYYY.MMDD as the numeric
1147 format and YYYY-MM-DD as the display format. Programs can check whether this
1148 mode is active by testing flag 67. If flag 67 is clear, the mode is indicated
1149 by flag 31 (clear = MDY, set = DMY), as before.
1150 * Local variables. You create them with the new LSTO function, and they
1151 disappear automatically when the current subroutine ends, by executing RTN or
1152 END. If a local variable is created with a name that matches an already-
1153 existing variable, the older variable is hidden until the local variable goes
1154 away.
1155 * Dynamically growing RTN stack. It is not unlimited; in order to prevent
1156 infinite recursion from eating up all memory, it maxes out at 1024 levels.
1157 The new stack behaves a bit different than the old version (and the real
1158 HP-42S): when an XEQ happens while the stack is full, the old version would
1159 silently discard the oldest RTN, while with the new version, this returns a
1160 "RTN Stack Full" error.
1161 * Added support for direct command mapping in skins. This is specified by
1162 creating Macro: lines where the macro is not a sequence of keystrokes, but a
1163 command name enclosed in double quotes, e.g., Macro: 40 "SST→"
1164 * Windows, MacOS, and Linux versions: In skin layout files, they now look for
1165 keymap entries tagged as "WinKey:", "MacKey:", or "GtkKey:", respectively.
1166 This allows embedding keymaps for multiple platforms in one layout file.
1167 This does mean that old-style keymap entries, with no identifying tags, are
1168 no longer recognized. Out of all the skins in my collection, the only
1169 affected skins are desktop/42ck and desktop/42ct. If you use these skins,
1170 you'll want to download the updated layout files.
1171
1172 2019-03-27: release 2.1.1 (Android only)
1173
1174 * The "Maintain skin aspect ratio" setting didn't stick when the app was exited
1175 and restarted. Fixed.
1176
1177 2019-03-26: release 2.1
1178
1179 * New functions: SST↑ (Step Out) and SST→ (Step Over). Step Out runs the
1180 program until the end of the current subroutine; Step Over executes one step,
1181 but if that step is an XEQ, SOLVE, or INTEG, it runs until the subroutine
1182 returns, or SOLVE or INTEG are done. When Step Out is performed in a function
1183 called by SOLVE or INTEG, the program runs until SOLVE or INTEG are done.
1184 * Added SST↓ (Step Into), which is just an alias for SST. This allows creating
1185 a row in the CUSTOM menu with SST↓, SST→, and SST↑, like in typical high-
1186 level language debuggers.
1187 * Android and iOS versions: Improved "Maintain skin aspect ratio" option: it
1188 now chooses the largest scale where the skin still fits on the screen in its
1189 entirety, and centers the skin within the available space.
1190 * iOS version: The "Maintain skin aspect ratio" and "Print to text" options in
1191 the Preferences were switched. Fixed.
1192 * iOS version: Fixed handling of announcements in the status bar (audio
1193 recording, active call, active GPS).
1194 * iOS version: Turned optimization back on. It looks like the optimizer bug
1195 (see release notes for 2.0.21a) has been fixed.
1196
1197 2019-03-18: release 2.0.24h (Android only)
1198
1199 * The screen update logic in the previous version was incorrect and caused the
1200 app to appear unresponsive on many devices. Fixed.
1201
1202 2019-03-17: release 2.0.24g (Android, iOS, and MacOS)
1203
1204 * Android, iOS, and MacOS versions: Enabled non-integral display scaling.
1205 * Android and iOS versions: Added setting in Preferences to choose whether to
1206 stretch skins to fill the screen, or to stretch them only to fill the
1207 available width, while maintaining their original aspect ratio.
1208 * iOS version: Implemented support for landscape orientation.
1209 * iOS version: Fixed alignment of "Done" buttons.
1210
1211 2019-03-08: release 2.0.24f (iOS only)
1212
1213 * Added Haptic Feedback setting in Preferences.
1214
1215 2019-03-03: release 2.0.24e (Android only)
1216
1217 * Fixed crash when calling ON or OFF from a program.
1218 * Fixed a bug that could leave a corrupted state file under certain
1219 circumstances.
1220
1221 2019-02-28: release 2.0.24d (Android only)
1222
1223 * Fixed crashes while printing.
1224
1225 2019-02-26: release 2.0.24c (Android and iOS)
1226
1227 * Android version: Removed all restrictions on file selection dialogs, and
1228 instead added a "Home" button, so you can always navigate back to
1229 /sdcard/Android/data/com.thomasokken.free42 if you get stuck somewhere.
1230 * iOS version: Fixed the white bar that was showing up above the skin on iPads
1231 running iOS 12.
1232
1233 2019-02-25: release 2.0.24b (Android only)
1234
1235 * Made file selection dialogs full-screen.
1236 * Fixed file selection behavior for Import Programs and Select Skin. It now
1237 starts in the writable storage directory, but does allow navigation out of
1238 it.
1239
1240 2019-02-25: release 2.0.24a (Android and MacOS)
1241
1242 * Android version: Lifted file selector directory restriction for Import
1243 Programs and skin selection, keeping it in place for Export Programs and
1244 selecting print-out files.
1245 * MacOS version: The previous release broke Import Programs. Fixed.
1246
1247 2019-02-24: release 2.0.24
1248
1249 * Made program pasting a bit more lenient: tabs are now treated as spaces, and
1250 the following command names are now recognized: x, RCL*, RCLx, RCL/, STOx,
1251 X#0?, X#Y?, X<>0?, and X<>Y? (in addition to all the alternate spellings that
1252 were recognized previously).
1253 * iOS version: Added Key Clicks setting in Preferences.
1254 * Windows and MacOS versions: Now refuse to export zero programs. (The other
1255 versions already did this.) Also tweaked the file selection dialogs a bit.
1256 * Android version: When running on 4.4 (KitKat) or later, now creates the
1257 storage directory, /sdcard/Android/data/com.thomasokken.free42, as soon as it
1258 has access. The file selection dialogs are now restricted to this directory
1259 and its subdirectories.
1260
1261 2019-02-18: release 2.0.23c (iOS only)
1262
1263 * The previous release calculated the skin scale incorrectly for certain skins,
1264 causing them to be displayed too small. Fixed.
1265
1266 2019-02-17: release 2.0.23b (iOS only)
1267
1268 * Enabled non-integral scaling for skins, so skins can fill the width of the
1269 screen on iPhone X series (X, XR, XS, XS Max) even if they were designed for
1270 older models with 3:4 or 9:16 screen aspect ratios.
1271
1272 2019-02-11: release 2.0.23a (iOS only)
1273
1274 * Replaced iPhone X skin with a more screen-filling one.
1275
1276 2019-02-09: release 2.0.23
1277
1278 * SOLVE now tries harder when secant extrapolation gets stuck due to the secant
1279 being excessively steep.
1280 * 0^0 now returns Invalid Data, not 1, for all combinations of real and complex
1281 arguments. The rationale for returning 1 was mathematically questionable, and
1282 Invalid Data is what the real HP-42S returns.
1283 * iOS version: Added basic iPhone X support.
1284
1285 2019-01-26: release 2.0.22c (Android only)
1286
1287 * New Main Menu. This should be compatible with all Android versions, including
1288 Amazon Fire HD tablets and other devices that sabotaged the old menu after it
1289 started targeting Android 8.
1290 * Added code to request storage and GPS access when needed.
1291
1292 2019-01-13: release 2.0.22b (Android only)
1293
1294 * Another fix for invisible overflow menu items.
1295
1296 2019-01-12: release 2.0.22a (Android only)
1297
1298 * Fixed invisible overflow menu items.
1299
1300 2019-01-12: release 2.0.22
1301
1302 * Made pasting real scalars a bit more lenient: it is now permitted for there
1303 to be trailing non-numeric characters after the number, so pasting a number
1304 with an attached unit, say 50mm, yields the number 50, not the string "50mm".
1305 * INPUT should clear any message from the display before showing the prompt,
1306 but it didn't. Fixed.
1307 * When ALPHA mode is active on top of VARMENU, ASTO and ARCL should show the
1308 regular variable menus, but they showed the VARMENU instead. Fixed.
1309 * During command entry, SST and BST should be disabled, but the code that tried
1310 to do this also prevented some legitimate uses of ▲ and ▼, such as switching
1311 menu rows during FIX IND __.
1312 * While entering a numeric LBL, it should be possible to switch to ALPHA mode,
1313 using Shift-ENTER, to switch from, say, LBL 3_ to LBL "3_ , as an alternative
1314 method of entering ALPHA labels that start with a digit. The HP-42S allows
1315 this, but Free42 didn't. Fixed.
1316 * Android and iOS versions: OFF now turns off "continuous on" mode.
1317
1318 2018-11-24: release 2.0.21b (Windows only)
1319
1320 * Fixed Alt-Tab behavior.
1321
1322 2018-07-03: release 2.0.21a (iOS only)
1323
1324 * Turned off all optimization for release builds; the latest iOS developer
1325 tools appear to have a buggy optimizer, and it is causing number display in
1326 OCT and HEX modes to misbehave -- they show numbers with unwanted leading
1327 zeroes, for a total number of digits that would be appropriate for BIN mode,
1328 so 1=>1, 2=>02, 3=>03, 4=>004, etc.
1329
1330 2018-06-24: release 2.0.21
1331
1332 * Fixed complex SQRT so it returns exact results when Re(x) = 0 and Im(x)/2 is
1333 a perfect square.
1334 * VARMENU would step through rows of multi-line menus in the wrong order.
1335 (You needed a function with 13 or more MVARs to notice this.) Fixed.
1336 * When printing to GIF, changing the filename did not cause the GIF numbering
1337 sequence to restart at 1. Fixed.
1338 * When printing to GIF, the output file is now flushed and closed immediately
1339 if there is no more room for at least another 9 pixels after printing -- in
1340 other words, when no more printing to that file is possible anyway. It used
1341 to wait until the next print request, or app close, before flushing and
1342 closing in this situation.
1343 Also, the minimum height of a GIF output file is now 16 pixels, down from 32.
1344
1345 2018-03-12: release 2.0.20
1346
1347 * MATA, MATB, and MATX should exhibit the same stack lift behavior as EDIT and
1348 EDITN, but didn't. Fixed.
1349
1350 2018-03-10: release 2.0.19
1351
1352 * Another EDIT/EDITN fix: in the real HP-42S, EDIT and EDITN don't actually
1353 disable stack lift; they preserve the stack lift state, which you can observe
1354 if you do ENTER vs. a stack-lift-enabling operation (say, X<>Y) just before
1355 invoking them. This behavior is not really useful, but it needs to be
1356 emulated anyway, since not doing so risks breaking HP-42S programs.
1357 This does not affect GOTO Row/Column.
1358
1359 2018-03-09: release 2.0.18
1360
1361 * EDIT, EDITN, and GOTO Row/Column should disable stack lift, but they didn't.
1362 Fixed.
1363
1364 2018-03-02: release 2.0.17
1365
1366 * Inserting or deleting an END would not always clear cached local GTO or XEQ
1367 targets, potentially causing local GTO or XEQ commands to jump to the wrong
1368 locations. Fixed, and also added code to repair such damage in existing state
1369 files.
1370
1371 2018-02-22: release 2.0.16
1372
1373 * 0 SEED initialized the random seed incorrectly, wasting one digit of
1374 randomness. Fixed.
1375 * When importing raw files, E and -E are now recognized as 1 and -1, for
1376 compatibility with HP-41 raw files with synthetic numbers.
1377 * When importing raw files, synthetic instructions are now handled more like
1378 the real HP-42S handles them. Basically, any argument >= 100 that isn't a
1379 stack register and that isn't a local label is treated as numeric. Arguments
1380 112-116 are always stack registers, even when that makes no sense (flags,
1381 ΣREG, etc.); 102-111 and 123-127 are only considered as A-J and a-e in LBL,
1382 GTO, and XEQ.
1383 Note that nothing very interesting happens as a result of these changes. They
1384 won't make synthetic HP-41C code work in Free42 any more than it does in the
1385 HP-42S; the behavior is just more like the real 42S now.
1386
1387 2018-02-17: release 2.0.15
1388
1389 * POSA would not find the search string if its only occurrence was at the very
1390 end of the alpha register. Fixed.
1391 * Android version: Tweaked handling of low-battery indicator.
1392
1393 2018-02-10: release 2.0.14
1394
1395 * In Export Programs, removed the hard-coded buffer size for the list of
1396 programs, so you should now see all your programs in the list, no matter how
1397 many there are.
1398 * When Pasting complex numbers in a+bi notation, the imaginary unit must now be
1399 either i or j; the alternative spellings I and J are no longer recognized.
1400
1401 2018-02-06: release 2.0.13
1402
1403 * Paste didn't handle numbers with negative exponents correctly. Fixed.
1404
1405 2018-02-02: release 2.0.12d (iOS only)
1406
1407 * Fixed crash in GIF printing.
1408
1409 2018-01-30: release 2.0.12c (Android only)
1410
1411 * Another fix for crash on orientation change while printing.
1412
1413 2018-01-29: release 2.0.12b (Android only)
1414
1415 * Switching between portrait and landscape modes, while printing was in
1416 progress, could cause a crash. Fixed.
1417
1418 2018-01-28: release 2.0.12a (Android only)
1419
1420 * Fixed handling of state files that were corrupted in a way that caused
1421 persistent crashes on the first keystroke.
1422
1423 2018-01-27: release 2.0.12
1424
1425 * Fixed pasting of SIZE lines.
1426 * When pasting numbers, spaces are now allowed as thousands separators.
1427 * MacOS and MacOS Dashboard versions: Are now 64-bit.
1428 * MacOS and Linux versions: Fixed Caps Lock handling, so Caps Lock + Esc no
1429 longer exits.
1430 * Android and iOS versions: Implemented "continuous on" mode (ON function,
1431 flag 44).
1432
1433 2018-01-26: release 2.0.11a (Android only)
1434
1435 * Removed the cleanup of variables in core_quit(); it looks like this was
1436 responsible for the failure mode where the app would crash at the first
1437 keystroke, consistently, forcing uninstall/reinstall.
1438 * Pasting numbers that ended in CRLF, as when copying a single cell from Excel,
1439 didn't work; they were interpreted as strings. Fixed.
1440
1441 2018-01-14: release 2.0.11
1442
1443 * Copy now ignores flag 29 (thousands separators) and always copies numbers
1444 without separators. This fixes certain surprising / undesirable behaviors
1445 when pasting numbers into spreadsheets or programs.
1446 * When entering a program line in NORM or TRACE modes, the line would be
1447 printed, even when printing was disabled. Fixed.
1448 * MATA and MATB, in the SIMQ menu, would crash if the MATA or MATB variables
1449 were missing. Fixed, and also cleaned up type checks in MATX.
1450 * Android version: Printing lots of output quickly, for example, by running a
1451 program in TRACE mode, would cause the user interface to become sluggish or
1452 even unresponsive on some devices. Fixed by posting UI updates less
1453 aggressively.
1454
1455 2018-01-07: release 2.0.10
1456
1457 * Program Paste without line numbers didn't handle certain numbers,
1458 specifically, those that started with a digit and didn't consist of only
1459 digits. Fixed.
1460
1461 2018-01-07: release 2.0.9
1462
1463 * Program Paste no longer requires line numbers.
1464 * The CUSTOM command would toggle the CUSTOM menu, but that was wrong: it
1465 should only activate that menu, never deactivate it. Fixed.
1466 * DIM?, EDIT, and EDITN didn't print X in TRACE mode. Fixed.
1467 * Selecting the already-active menu did not cause the display to be repainted,
1468 even though it should: there might be a message, which should be removed in
1469 that case. Fixed.
1470 * All versions except MacOS Dashboard: made the print annunciator linger for
1471 one second after printing stops. This makes it more noticeable, so printing
1472 is less likely to go unnoticed on fast devices.
1473 * MacOS version: Implemented battery checker.
1474 * Linux version: Added /sys/class/power_supply support in battery checker.
1475
1476 2017-12-26: release 2.0.8
1477
1478 * MENU (activating the programmable menu) while in ALPHA mode didn't turn off
1479 the alpha_mode flag, leading to bad behavior or even crashes if any menu keys
1480 were subsequently pressed.
1481
1482 2017-12-21: release 2.0.7c (Windows only)
1483
1484 * Decimal: SIN and COS of 45 degrees or 50 grads returned an inaccurate result,
1485 correct to only 16 digits. Fixed.
1486
1487 2017-12-18: release 2.0.7b (Android only)
1488
1489 * The "Always Paint Entire Display" setting, introduced in the previous
1490 version, didn't stick after app restart. Fixed.
1491
1492 2017-12-17: release 2.0.7a (Android only)
1493
1494 * Added "Always Paint Entire Display" option. This prevents display glitches
1495 with certain combinations of devices and skins.
1496
1497 2017-11-19: release 2.0.7
1498
1499 * Changed the RAN and SEED functions to match the behavior of the real HP-42S.
1500 The previous implementation used the algorithm from the HP-41C Standard Pac,
1501 which produced numbers with only 6 significant digits.
1502 * The ▼▲ annunciator (multi-row menu) did not get updated correctly when
1503 VARMENU was activated, including in the solver and integrator. Fixed.
1504 * Windows version: Restored the Calculator key mapping option, which I had
1505 removed in 1.5.14. It turns out that keyboards with a dedicated Calculator
1506 key do still exist.
1507 * Android version: The menu icons for Copy, Paste, and Print-Out were displayed
1508 too large, overlapping the menu item labels on some devices. Fixed.
1509 * Windows, Linux, MacOS, and MacOS Dashboard versions: Added keyboard mappings
1510 g => GTO and p => PI. On existing installations, users must delete or rename
1511 the existing keymap and restart for this to take effect.
1512 * iOS version: Painting the display could be glitchy if either or both of
1513 its coordinates were odd. Fixed by forcing them to be even.
1514
1515 2017-08-12: release 2.0.6
1516
1517 * Decimal version: Fixed ISG and DSE for values >= 2^63 (9.2e18).
1518 * Fixed a couple of bugs in how changes to internal SOLVE and INTEG data
1519 structures are handled.
1520
1521 2017-07-30: release 2.0.5
1522
1523 * Fixed INTEG termination condition. It would return inaccurate results in
1524 certain cases.
1525 * Fixed importing numbers with exponent but no mantissa, e.g. E3, -E-5, etc.
1526 This got broken in 1.5.
1527 * Fixed crash when trying to allocate ridiculously large matrices.
1528 * While entering a numeric argument, the ▲ and ▼ keys would perform BST and
1529 SST, which should be blocked. Fixed.
1530 * Testing flag 75 would turn on the programmable menu. Fixed.
1531 * iOS version: Fixed a few display alignment issues with the built-in 4"
1532 skin.
1533
1534 2017-05-29: release 2.0.4
1535
1536 * Implemented special-case code for pure real and pure imaginary numbers in all
1537 the complex logarithmic, trigonometric, and hyperbolic functions.
1538
1539 2017-05-28: release 2.0.3
1540
1541 * Fixed a few edge cases in complex functions.
1542 * The last digit in full-precision representation (SHOW, Copy) could be off by
1543 one in certain circumstances. Fixed.
1544 * On cold start, now clearing flags 21 (printer enable) and 55 (printer
1545 existence), to match the behavior of the real HP-42S.
1546 * Removed "raw text" print option; it has been obsolete since the introduction
1547 of UTF-8 printing in 1.5.11, since Unicode can represent the HP-42S character
1548 set directly.
1549 * iOS version: LOCAT didn't work when its initial invocation happened from a
1550 program. Fixed.
1551 * In the About box, replaced the link to the Free42 discussion group with a
1552 link to the Alternative HP-42S/Free42 Manual.
1553
1554 2017-04-28: release 2.0.2
1555
1556 * In Unicode-to-HP conversion, translate "\LF" and "[LF]" to 10, not 138.
1557 Character 138 only exists to *represent* LF, but isn't available in the ALPHA
1558 menu and therefore cannot appear in non-synthetic programs.
1559 * Unicode-to-HP conversion handles curly quotes now (U+2018, U+2019, U+201C,
1560 U+201D).
1561
1562 2017-04-23: release 2.0.1 (beta)
1563
1564 * Change right-pointing triangle from Unicode U+25B6 (black right-pointing
1565 triangle) to U+25B8 (black right-pointing small triangle); the former gets
1566 rendered as an emoji in iOS, while the latter doesn't, plus, the smaller
1567 triangle looks better in listings anyway.
1568 * MacOS Dashboard version: Fixed multi-line pasting.
1569
1570 2017-04-22: release 2.0 (beta)
1571
1572 * Copy & Paste now handle matrices, ALPHA mode, and PRGM mode.
1573
1574 2017-04-01: release 1.5.15
1575
1576 * Instead of being limited to 12 mantissa digits, full precision (34 digits in
1577 the Decimal version, 16 digits in Binary) is now supported for number entry,
1578 SHOW, Copy, and Paste.
1579
1580 2017-03-11: release 1.5.14
1581
1582 * Changed complex TAN and TANH to use more accurate formulae.
1583 * The Time Module functions used to keep track of MDY/DMY modes using an
1584 invisible flag. For better HP-41 compatibility, they now use flag 31.
1585 * Android version: Made state file writing more robust. If writing the state
1586 file fails, it now keeps the previous one, instead of leaving behind a
1587 partial or corrupt one.
1588 * Linux version, Free42 Binary only: Some (recent?) versions of GTK set the
1589 LC_NUMERIC locale, which Free42 expects to always be "C". This causes number
1590 entry and display to be messed up in locales where the decimal is not ".",
1591 including most of Europe. I added code to force LC_NUMERIC back to "C" after
1592 gtk_init(), fixing this problem.
1593 * Binary version: Fixed binary round-off problem in ADATE (for example,
1594 10.102010 would be rendered as 10/10/2009).
1595
1596 2017-01-22: release 1.5.13
1597
1598 * When DIM, SIZE, or SIMQ resize the indexed matrix, and when CLV deletes the
1599 indexed matrix, IJ should be set to (1, 1); and when DIM, SIZE, or SIMQ try
1600 to resize the matrix currently being edited by EDITN, and when CLV tries to
1601 delete the matrix currently being edited by EDITN, they should return a
1602 "Restricted Operation" error. Neither happened, creating the potential for
1603 memory corruption if IJ ended up pointing outside the matrix' data array.
1604 Fixed.
1605 * STO and STO* allowed the target to be the matrix under edit by EDITN. They
1606 should not allow this, but return "Restricted Operation" instead. Fixed.
1607 * CLALL didn't always exit all menus. Fixed.
1608
1609 2016-10-03: release 1.5.12
1610
1611 * Android version: Fixed UTF-8 printing, which was broken in 1.5.11.
1612 * All versions: When printing to text, up-arrow now looks like an up-arrow,
1613 instead of a caret.
1614
1615 2016-10-01: release 1.5.11
1616
1617 * EXITALL didn't always exit all menus. Fixed.
1618 * Print-to-text now emits UTF-8 encoded text, instead of ISO-8859-1.
1619 * Print-to-text now emits CRLF line separators on all platforms.
1620 * Android version: Didn't save the "raw text" print setting. Fixed.
1621 * Android version: Added landscape skin; made it the default for landscape mode
1622 in new installs.
1623
1624 2016-09-04: release 1.5.10 (Android, Windows, MacOS, and Linux)
1625
1626 * Fixed AGRAPH bug with complex number in X.
1627
1628 2016-09-04: release 1.5.9 (Android, Windows, MacOS, and Linux)
1629
1630 * Now building the Intel Decimal Floating-Point Math Library from source for
1631 all targets. In terms of the end user, this makes no difference, but it will
1632 make life easier for people who want to port Free42 to platforms that I don't
1633 support myself (FreeBSD, Solaris, etc.); those platforms were left out in the
1634 cold when I started using the Intel library and only provided pre-built
1635 binaries for the supported platforms.
1636 * Implemented range reduction for more accurate TAN in DEG and GRAD modes.
1637 * Android version: Now handles orientation change more efficiently.
1638
1639 2016-04-26: release 1.5.8f (Android only)
1640
1641 * Rolled back 8e, which was a disaster; it didn't fix the remaining black
1642 line issues, but it did cause crashes everywhere.
1643
1644 2016-04-26: release 1.5.8e (Android only)
1645
1646 * The previous fix for the thin-black-line problem didn't do the job on some
1647 devices. Here's another fix that should do a better job.
1648
1649 2016-04-25: release 1.5.8d (Android only)
1650
1651 * Fixed the thin black lines that would sometimes appear around the display.
1652 * In full-screen mode, swiping down from the top would post the menu, because
1653 the initial touch would be in the same area that Free42 watches as the menu
1654 trigger. I changed the code so that the trigger only fires if the user lifts
1655 their finger while still inside that critical area, which will only happen
1656 if the downward swipe is very short.
1657 * Fixed the top-of-screen menu trigger so that it no longer sabotages keys
1658 that are also in that area, as in the HP_Mega_42 skin.
1659
1660 2016-04-24: release 1.5.8c (Android only)
1661
1662 * Implemented true full-screen mode. This hides the navigation bar as well the
1663 status bar, on devices running Android 4.4 (KitKat) or later.
1664
1665 2016-04-23: release 1.5.8b (Android only)
1666
1667 * Print-Out is now scaled to make better use of available screen width.
1668 * Fixed key clicks.
1669 * Implemented Reverse Portrait (upside-down) mode.
1670
1671 2016-04-17: release 1.5.8a (Android only)
1672
1673 * Tapping in the top half of the display now brings up the app's option menu.
1674
1675 2016-04-17: release 1.5.8
1676
1677 * Entering an END into a program using the CUSTOM menu would leave the program
1678 counter at an invalid value, leading to memory corruption, state file
1679 corruption, and crashes. Fixed.
1680 * Android version: Changed haptic feedback code back to using the old API.
1681 * Android version: Changed targetSdkVersion from 3.0 to 2.2. This should make
1682 the menu reliably accessible in all Android versions and with all display
1683 styles.
1684 * Resurrected the MacOS Dashboard version; the display repaint logic now
1685 supports Yosemite (10.10) and later.
1686
1687 2016-03-19: release 1.5.7a (Android only)
1688
1689 * Made the action/title bar optional.
1690 * Added full-screen mode (removes action/title bar and status bar).
1691 * Added installLocation=auto to the manifest, so the app can now be installed
1692 on an SD card.
1693
1694 2016-02-28: release 1.5.7
1695
1696 * INSR should disable stack lift, but didn't. Fixed.
1697 * Android version: Added Action Bar, reluctantly embracing the reality of
1698 devices with no menu button (or hard-to-find menu buttons, like the "press
1699 and hold the task switch button" behavior on some devices).
1700
1701 2014-12-21: release 1.5.6
1702
1703 * iOS version: Implemented Copy and Paste.
1704 * iOS version: Fixed LOCAT for iOS 8.
1705 * All versions, on hard reset, now initializing flag 28 (decimal point/comma)
1706 to match the host's locale.
1707 * Paste didn't clear the message flags. Fixed.
1708
1709 2014-11-12: release 1.5.5
1710
1711 * Decimal version: Entering a number with an empty exponent (e.g. 1E or 1E-)
1712 would yield <Not a Number>. Fixed.
1713 * iOS version: HTTP server: Fixed downloading individual programs from, and
1714 uploading zip files of programs to, the /memory directory. This got broken in
1715 release 1.4.77, while implementing local file download.
1716 * Android version: When the screen orientation was set to "automatic", it would
1717 not honor any system-wide orientation lock. Fixed.
1718
1719 2014-11-08: release 1.5.4a (Android only)
1720
1721 * Fixed crash on startup in Android 5.0 (Lollipop).
1722 * Printing to text would truncate the file whenever it was reopened, opening it
1723 for writing rather than appending. Fixed.
1724
1725 2014-09-23: (no new code release)
1726
1727 * Added nova1_1096 skin, for iPhone 5, to the Free42iPhoneSkins package.
1728 Contributed by Keith Carangelo.
1729
1730 2014-09-06: release 1.5.4a (iOS only)
1731
1732 * Fixed keyboard handling in the Preferences and Select File dialogs.
1733 * Fixed scrolling behavior (in 1.5.4, windows were sized 20 pixels beyond the
1734 bottom of the screen, making the bottommost bit of scroll views drop off the
1735 screen).
1736 * Added 4" skin for iPhone 5, and added code to select the best-fitting built-
1737 in skin on first launch.
1738
1739 2014-07-22: release 1.5.4
1740
1741 * Decimal version: Fixed ACOS. It would return 0 for acos(-1).
1742 This bug was introduced in release 1.5.
1743
1744 2014-06-21: release 1.5.3a (Android only)
1745
1746 * Made GPS optional. When I added the ACCESS_FINE_LOCATION permission in
1747 1.4.78, that had the side effect of making GPS a requirement. In 1.5.3a,
1748 the app manifest explicitly states that the GPS is not required.
1749
1750 2014-05-25: release 1.5.3
1751
1752 * Fixed crash in SIMQ if any of MATA, MATB, or MATX already existed and was a
1753 scalar or string.
1754
1755 2014-05-10: release 1.4.78 (Android only)
1756
1757 * Fixed the LOCAT function, by adding the ACCESS_FINE_LOCATION permission.
1758
1759 2014-03-16: release 1.5.2
1760
1761 * Decimal version: Fixed Y^X for complex Y and negative integral X.
1762 * Decimal version: Made Y^X and 10^X for real Y and integral X more accurate.
1763 * All versions: sin(45°) now equals cos(45°), and sin(50grad) = cos(50grad).
1764
1765 2014-03-15: release 1.5.1
1766
1767 * All versions: Fixed ASIN, ACOS, and ATAN so they return exact results in DEG
1768 and GRAD modes for trivial parameters (asin(1), asin(-1), acos(0), atan(1),
1769 atan(-1), atan(infinity).
1770 * Now displaying signed zero as zero, so you won't see -0 any more.
1771 * Windows version: Removed the "Free42 Directory" setting from the Preferences.
1772 The application now looks for a file or directory named "portable" in the
1773 directory where Free42Decimal.exe or Free42Binary.exe itself is located; if
1774 it exists, the state.bin, print.bin, and keymap.txt files will be stored in
1775 this directory as well, and skins will only be loaded from this directory. If
1776 there is no "portable" item in the executable's directory, it will store
1777 state.bin, print.bin, and keymap.txt in %APPDATA%\Free42, and it will load
1778 skins from that directory, and from the executable's directory.
1779
1780 2014-03-09: release 1.5
1781
1782 * Decimal version: Switched from BCD20 to Intel's Decimal Floating-Point
1783 Library v2.1.
1784 * Binary version: Replaced the old binary-to-decimal and decimal-to-binary
1785 conversions with code that uses the standard C library's equivalent
1786 functionality. This fixes final-digit errors in the Binary version, and also
1787 final-digit errors when switching from the Decimal to the Binary version.
1788 * All versions: Added angle reduction code to make SIN, COS, and →REC more
1789 accurate in DEG and GRAD modes.
1790 * Windows version: Now uses %APPDATA%\Free42 as the default Free42 directory
1791 (for storing state.bin, print.bin, and keymap.txt). This avoids permissions
1792 problems when people install the executable in a directory to which they
1793 don't have write access (like the popular choice C:\Program Files).
1794
1795 2013-12-08: release 1.4.78
1796
1797 * All versions except Android: while parsing macros in skin layout files, tab
1798 characters were not recognized as whitespace and caused parsing to fail.
1799 Fixed.
1800 * Linux version did not repaint the skin when it was switched from one skin to
1801 another with the same width and height. Fixed.
1802 * Windows version: Downgraded my build environment from Visual C++ 2012 to 6.0.
1803 This means the Free42 build for Windows will run on older versions of Windows
1804 again.
1805
1806 2013-12-07: release 1.4.77a (Android only)
1807
1808 * Android version: The "external storage" filesystem is no longer referred to
1809 by the hard-coded path /sdcard, but using the external storage directory name
1810 provided by the Environment. This should help prevent problems like exporting
1811 programs and then not being able to find them from the PC.
1812 * The file selection dialog will now append the file extension if the filename
1813 doesn't include it already.
1814
1815 2013-06-15: (no new code release)
1816
1817 * Three new skins, and many tweaks to existing skins, contributed by KD0GLS.
1818 The Free42Skins.zip, Free42iPhoneSkins.zip, and Free42AndroidSkins.zip
1819 packages were all updated.
1820 * Added two new skins for large Android devices. Contributed by Tyge Loevset.
1821
1822 2013-06-08: (no new code release)
1823
1824 * Galaxy_Nexus skin to Android skins package. Contributed by Andrew Novinc.
1825
1826 2013-03-02: release 1.4.77a (iOS only)
1827
1828 * iOS version: Fixed "Make Directory" in the file selection dialogs.
1829 * iOS version: When the user turns off printing to text or to GIF in the
1830 Preferences, or changes the print-out file name, the existing files are now
1831 promptly flushed and closed.
1832 * iOS version: Fixed "garbage" in print-out window.
1833 * iOS version: Now highlights the currently selected skin in the Select Skin
1834 menu.
1835
1836 2013-02-17: release 1.4.77
1837
1838 * iOS version: The links in the About view now actually work.
1839 * iOS version: Implemented 'New directory' and 'Delete' in the HTTP Server.
1840 * iOS version: Implemented zip file upload and download in the HTTP Server.
1841 * iOS version: Implemented local program import/export.
1842 * iOS version: Implemented print-out window.
1843
1844 2013-01-06: release 1.4.77
1845
1846 * All versions except iOS: the links in the About boxes now actually work.
1847
1848 2013-01-01: release 1.4.76
1849
1850 * MacOS version: Implemented print-out window.
1851
1852 2012-12-17: release 1.4.75b (iOS only)
1853
1854 * iOS version: Fixed three issues with the HTTP Server (displaying the wrong IP
1855 address, binding to the network incorrectly, and a crash when writing to the
1856 on-screen log).
1857
1858 2012-12-04: release 1.4.75a (iOS only)
1859
1860 * iOS version: Clicking Done on the HTTP Server window could cause the app to
1861 freeze under certain circumstances. Fixed.
1862
1863 2012-11-24: release 1.4.75
1864
1865 * Android version: Implemented haptic feedback option (vibrate on keypress).
1866
1867 2012-10-27: release 1.4.75
1868
1869 * iOS version: In the HTTP Server view, tapping on the server URL switches
1870 between the DNS name and the IP address.
1871 * Linux version: Now uses ALSA to play BEEP and TONE sounds (but not when
1872 running on remote displays).
1873
1874 2012-07-29: release 1.4.74b (Android only)
1875
1876 * Android version: Now writes state file when moved to background.
1877
1878 2012-05-06: release 1.4.74a (Android only)
1879
1880 * Android version: Fixed a couple of bugs that could cause crashes while
1881 printing.
1882
1883 2012-05-05: release 1.4.74
1884
1885 * Decimal version: The overflow fix in 1.4.73 was incorrect. This one works.
1886
1887 2012-05-05: release 1.4.73
1888
1889 * iOS version: Now writes state file when moved to background.
1890 * OFF now refuses to shut down Free42 if there have been no keystrokes since
1891 the application was started. It will stop program execution and display
1892 the message "Suspicious OFF" instead.
1893 This prevents code like LBL "OOPS" SF 11 OFF GTO "OOPS" from locking the
1894 user out.
1895 * Decimal version: Overflows would return zero in some cases, i.e.
1896 9E9999 ENTER +. Fixed.
1897
1898 2012-04-15: release 1.4.72
1899
1900 * Android version: Added "skin smoothing" and "display smoothing" check boxes
1901 in the Preferences view.
1902
1903 2012-04-14: release 1.4.71
1904
1905 * HMS+ and HMS- would return results with the wrong sign under certain
1906 circumstances: result < 0 and |result| < 59 seconds, or result < 0 and
1907 |result| > maximum integer. Fixed.
1908
1909 2012-04-09: release 1.4.70b (Android only)
1910
1911 * Android version: Fixed app manifest so the app no longer obtains the
1912 READ_PHONE_STATE permission, which it never needed anyway.
1913 Some background: Apps targeted at Android 1.5 automatically get
1914 READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE when installed in Android 1.6 or
1915 higher, without the user being told, and this tends to look under-handed to
1916 users who aren't aware of what's going on. Free42 now targets 1.6, which
1917 means it doesn't get any permissions silently.
1918 It does now request WRITE_EXTERNAL_STORAGE, because it needs it for printing
1919 to files and for exporting programs.
1920 Note that the app still runs on 1.5 and later; the requirements for running
1921 it have not changed.
1922
1923 2012-02-12: release 1.4.70a (Android only)
1924
1925 * Android version: Fixed app manifest to make the app work with screens other
1926 than 320x480. This should fix the problem of skins not filling the whole
1927 screen on some devices.
1928
1929 2011-09-18: release 1.4.70
1930
1931 * Fixed several bugs in complex ASIN, ASINH, ACOS, and ACOSH.
1932 * Android version: Better printer icon in the main menu, by Günter Schink.
1933 * MacOS version: OFF didn't work when invoked from a program. Fixed.
1934
1935 2011-06-11: (no new code release)
1936
1937 * Added two new skins to the Android skins package, designed for the Samsung
1938 Galaxy S 9000, which has an 800x480 screen. Contributed by Günter Schink.
1939
1940 2011-05-22: (no new code release)
1941
1942 * Added Free42AndroidSkins.zip package, for skins designed for Android-based
1943 devices; added HTC4800 skin for HTC Desire HD or other Android devices with
1944 480x800 screens. Skin contributed by Michael Vogel, based on an iPhone skin
1945 by Jerrod Hofferth.
1946
1947 2011-04-22: release 1.4.69 (Android only)
1948
1949 * Added "orientation" option in Preferences, allowing the user to lock the app
1950 in landscape or portrait mode.
1951 * Improved the layout of the file selection and Preferences dialogs.
1952 * The file selection dialog no longer disables files that don't match the
1953 filter; it now hides them.
1954
1955 2011-04-20: release 1.4.68
1956
1957 * INVRT did not perform any type checks, leading to badness when it was applied
1958 to anything that wasn't a matrix. Fixed.
1959
1960 2011-04-10: (no new code release)
1961
1962 * Added six new skins to the iPhone skins package. Contributed by Javier
1963 Goizueta.
1964
1965 2011-03-13: release 1.4.67
1966
1967 * ASIN returned incorrect results for large complex arguments. Fixed.
1968 * iOS version: Added support for 640x920 skins.
1969 * Added Silver And Blue skin to Free42PocketPCSkins.zip package. Contributed by
1970 David Geiger.
1971 * The SST and BST key labels were switched in these skins:
1972 ppcskins/Andy480x800.gif ppcskins/Ramos240x400.gif ppcskins/Ramos480x640.gif
1973 ppcskins/SilverAndBlue.gif ppcskins/StandardPPC.gif
1974 ppcskins/StandardPPCsm.gif skins/Andy480x800.gif
1975 Fixed.
1976
1977 2010-04-08: release 1.4.66
1978
1979 * Removed the "Not Yet Implemented" Time functions; I decided not to implement
1980 them. They're also gone from the FCN catalog.
1981 The ADATE, ATIME, ATIME24, CLK12, CLK24, DATE, DATE+, DDAYS, DMY, DOW, MDY,
1982 and TIME functions remain; those are the time/date-related functions from the
1983 HP-41 Time Module that are actually useful in Free42.
1984 The functions that I decided not to implement after all are the following:
1985 Live clock display: CLKT CLKTD CLOCK
1986 Stopwatch: RCLSW RUNSW SETSW STOPSW SW
1987 Alarms: ALMCAT ALMNOW XYZALM
1988 Clock control: CORRECT RCLAF SETAF SETDATE SETIME T+X
1989 * In DMY mode, DATE would display dates as DD:MM:YYYY, but that should be
1990 DD.MM.YYYY. Fixed.
1991
1992 2010-04-03: release 1.4.65
1993
1994 * Implemented some more Time Module functions: ADATE, ATIME, ATIME24, CORRECT,
1995 RCLAF, SETAF, SETDATE, SETIME, T+X.
1996
1997 2010-03-30: release 1.4.64
1998
1999 * Implemented some more Time Module functions: DATE+, DDAYS, and DOW.
2000
2001 2010-03-28: release 1.4.63
2002
2003 * iOS version: Implemented ACCEL, LOCAT, and HEADING functions, for querying
2004 the device's accelerometer, location services (GPS on the 3G and 3GS; WiFi-
2005 based on all other models), and compass (3GS only).
2006 * All versions except MacOS Dashboard: for skins, increased the maximum macro
2007 length from 31 to 63. The old limit was too small to allow macros that step
2008 forward all the way to the end of the FCN catalog, and supporting such macros
2009 is necessary now that the length of the FCN catalog is no longer fixed at 42
2010 rows.
2011 * Also, changed several macros in the HP-41 and HP42CY skins where the FCN
2012 catalog was being traversed backwards, replacing N repetitions of ▲ with 42-N
2013 repetitions of ▼, so they will work correctly in the presence of an extended
2014 FCN catalog. (None of the other skins currently in the Free42 repository
2015 traverse the FCN catalog backwards, so they don't need updating.)
2016 * PalmOS version: Turning off printing did not flush the GIF file, so you'd end
2017 up with a truncated image. Fixed.
2018 * When COMPLEX is executed with a complex number or complex matrix in X, and
2019 POLAR mode is active, it is possible for range errors to occur. Free42 would
2020 simply substitute POS_HUGE_VAL in such cases, but that was incorrect; it
2021 should report Out of Range or substitute POS_HUGE_VAL depending on the
2022 setting of flag 24. Fixed.
2023 * R/S can now be pressed using the PC keyboard even when ALPHA mode is active.
2024
2025 2010-03-07: release 1.4.62
2026
2027 * Windows version: Now has an option in the Preferences screen to map the
2028 Calculator key, found on many newer keyboards, to launch Free42.
2029 * iOS version: The hostname lookup for the HTTP Server window is now done in a
2030 background thread, so that a slow or malfunctioning DNS server no longer
2031 causes the app to freeze on startup.
2032 * When EDITN was active, you could overwrite the edited matrix with a scalar
2033 using STO, or delete it using CLV -- and then you would be stuck in the
2034 Matrix Editor, and even CLALL couldn't get you out. Fixed; you will now get
2035 the Restricted Operation message when you try to change or delete the active
2036 matrix behind EDITN's back.
2037
2038 2009-12-29: (no new code release)
2039
2040 * Added HP-41 skin to the Free42Skins.zip package. This skin mimics the HP-41
2041 layout, and includes many macros to map additional functions to the keyboard.
2042 Contributed by Guenny.
2043
2044 2009-11-25: release 1.4.61
2045
2046 * Decimal version: →OCT (decimal-to-octal conversion) was broken; it actually
2047 converted octal to decimal. Fixed.
2048
2049 2009-11-11: (no new code release)
2050
2051 * Added HP42CY skin to the Free42Skins.zip package. This skin includes many
2052 macros to map additional functions to the keyboard. Contributed by Guenny.
2053 * Added kacskin and kacskin_yellow skins to the Free42Skins.zip package.
2054 These are slightly modified versions of Michaels HP, and may be easier to
2055 read on some screens. Contributed by Keith Carangelo.
2056
2057 2009-11-08: release 1.4.60
2058
2059 * Decimal version: SQRT could be off by 1 in the final digit. It now computes
2060 one additional digit and rounds it into the mantissa, which should make it
2061 accurate in all cases.
2062 * Decimal version: The BCDFloat add and subtract functions could return
2063 denormalized results when one of the arguments was zero. Free42 would not
2064 display these denormalized numbers correctly, leading to strange results like
2065 1.0001 LOG returning something that looked like zero but wasn't. Fixed.
2066
2067 2009-10-31: release 1.4.59
2068
2069 * MacOS Dashboard version: Changed the background from green to gray, and
2070 changed the transparency to fully opaque.
2071 * PalmOS Decimal version builds & works again; fixed the SQRT crash and the
2072 divide bug (caused by 16-bit integer overflow, oops).
2073 * Decimal version: Re-fixed the subtract bug which had originally been fixed in
2074 1.4.53, but reappeared in the great BCDFloat/BCDFloat2 refactoring.
2075 * Decimal version: 1e-10000 LOG and 1e-10000 LN returned <Not a Number>. Fixed.
2076 * CLV and PRV didn't work from the CUSTOM menu, potentially even causing a
2077 crash. Fixed.
2078
2079 2009-10-24: release 1.4.58
2080
2081 * Removed Byron's BIGSTACK and BIGLCD hacks; these will be maintained in a
2082 separate fork from now on. This protects the other Free42 versions from bugs
2083 in the 42S/iOS code, and right now, it fixes some display glitches in the
2084 other versions.
2085
2086 2009-10-19: release 1.4.57
2087
2088 * New LOG code (again), for exact results when the argument is a power of 10.
2089 The bug from version 1.4.55 is fixed.
2090 * Subtract would lose one digit of precision for edge cases like
2091 1 - 0.9999999999999999999999999; fixed.
2092
2093 2009-10-12: release 1.4.56
2094
2095 * The new LOG implementation introduced in Decimal version 1.4.55 was broken;
2096 rolling back to 1.4.54 version. (Note that this means that powers of 10 do
2097 not yield exact results, but at least everything *else* is OK again now.)
2098
2099 2009-10-10: release 1.4.55
2100
2101 * Some improvements in the new BCDFloat code:
2102 . LOG (common log) is now precise for powers of 10.
2103 . MOD function now works for large arguments.
2104 . rounding fix in multiply now gets 1/3*3-1 and 10/3*3-10 the same answer,
2105 10/7*7-10 is not the same, but this is correct (it depends on where you cut
2106 off the number).
2107 . optimisations to subtract routine.
2108 * MacOS version: Now uses $HOME/Library/Application Support/Free42 instead of
2109 $HOME/.free42 for persistent state, keymap, and skins. If this directory
2110 does not exist, but $HOME/.free42 does, the latter is renamed to the former.
2111 * Switching from a version using the old BCDFloat code (1.4.51 or earlier) to a
2112 version using the new code (1.4.52 or later) wasn't handled properly; it
2113 should handle the change in how Infinities and NaNs are represented, but it
2114 didn't. This is related to the problem fixed in 1.4.54.
2115 Starting with this version, all state files created by versions 1.4.51 and
2116 older are assumed to contain old-style BCDFloat, and state files created by
2117 versions 1.4.52 and newer are assumed to contain new-style BCDFloat.
2118 This means that BCDFloat numbers created by all previous versions of Free42
2119 Decimal will now be interpreted correctly, however, any state file that has
2120 become damaged by upgrading from <= 1.4.51 Decimal to 1.4.52-54 will still
2121 be damaged, and the only way to make sure no such damage remains is to do
2122 CLALL and reload all programs and data.
2123
2124 to| <=51| <=51|52-53|52-53| 54 | 54 | >=55| >=55
2125 from | dec | bin | dec | bin | dec | bin | dec | bin
2126 ---------+-----+-----+-----+-----+-----+-----+-----+-----
2127 <=51 dec| + | + | - | + | - | - | + | +
2128 <=51 bin| + | + | - | + | + | + | + | +
2129 52-54 dec| c | c | + | - | + | + | + | +
2130 52-54 bin| c | c | - | + | + | + | + | +
2131 >=55 dec| c | c | c | c | c | c | + | +
2132 >=55 bin| c | c | c | c | c | c | + | +
2133
2134 LEGEND: This chart shows compatibility between Free42 state file versions. To
2135 check if version A will correctly handle state files produced by version B,
2136 check the cell at column A, row B. The numbers 51..55 in the chart refer to
2137 Free42 releases 1.4.51 through 1.4.55.
2138 A 'c' means you will get a "State File Corrupt" message; "+" means the state
2139 file will be read correctly, and "-" means the state file will be read, but
2140 some numbers will be converted incorrectly.
2141 Note that once the Free42 state has become damaged by an upgrade marked with
2142 "-" in this chart, it will stay damaged; so, for example, upgrading from
2143 1.4.51 Decimal to 1.4.52 Decimal, and then to 1.4.55 Decimal, may result in a
2144 damaged state, while upgrading from 1.4.51 Decimal to 1.4.55 Decimal directly
2145 will not.
2146
2147 2009-08-28: release 1.4.54
2148
2149 * The new BCDFloat code, introduced in version 1.4.52, uses a different
2150 convention for representing NaN and infinities: instead of using special
2151 values in the exponent, it now uses dedicated flags, and has a narrower
2152 exponent field. The code that converts between decimal and binary, when
2153 switching between Free42 Decimal and Free42 Binary while keeping the same
2154 state file, did not deal with this new convention, and, as a result,
2155 switching between those versions could cause numbers to become NaN or
2156 Infinity when they shouldn't.
2157 This release fixes this. It is only relevant to those who switch between
2158 Free42 Decimal and Free42 Binary.
2159
2160 2009-08-17: release 1.4.53
2161
2162 * Decimal version: Fixed a bug in the subtract routine that could cause
2163 incorrect, malformed results in some cases, e.g. 4 ENTER 3 / 1 - 3 * 1 -
2164 returned -:.E-25.
2165
2166 2009-08-08: release 1.4.52
2167
2168 * New: MacOS version. This is a native application, not a Dashboard widget;
2169 it is functionally identical to the PC versions (Windows, GTK, and Motif).
2170 The print-out window doesn't work yet, though printing to files does;
2171 everything else is working. The print-out window will be finished in a two
2172 or three weeks, barring the unforeseen. I'm releasing the app in this
2173 incomplete state because I feel it is stable and usable, and should be a
2174 big improvement for those currently using the Dashboard widget.
2175 This is a Universal application, so it should run on PowerPC and Intel-
2176 based Macs. It requires OS X 10.5 or later.
2177 * Decimal version: Merged Hugh Steers' latest BCD code. This provides more
2178 accurate transcendentals and some bug fixes.
2179 * Also, Hugh improved the error estimate for the Romberg integration code;
2180 it now converges more quickly in many cases.
2181 * MacOS Dashboard version: Now recognizes '*' and '+' on the numeric keypad.
2182
2183 2009-07-10: release 1.4.51
2184
2185 * Changed the homepage URL to http://thomasokken.com/free42/.
2186
2187 2009-06-29: release 1.4.50
2188
2189 * Adding or subtracting two complex matrices, and adding or subtracting a
2190 complex matrix in X to or from a complex scalar in Y, would cause memory
2191 corruption, resulting in a crash soon after. Fixed.
2192
2193 2009-06-13: (no new code release)
2194
2195 * Added "Realistic42s240x400" skin for 240x400 Pocket PC devices
2196 (Free42PocketPCSkins.zip package). Contributed by Denis Cesar.
2197
2198 2009-06-07: release 1.4.49
2199
2200 * BASE/ tried to catch division by zero by looking at Y instead of X. Oops! The
2201 result was that 0/1 would return "Divide by 0" and 1/0 would cause Free42 to
2202 crash. Fixed.
2203 * PalmOS version: Tall skins can now be selected on all devices, regardless of
2204 whether they have tall screens or not. On most devices, this isn't useful,
2205 but the tallness check had the effect of suppressing the 320x450 Ehrling42sm
2206 skin on the Tapwave Zodiac, which has a 480x320 screen; the result was that
2207 you couldn't use that skin even if you switched to portrait mode.
2208
2209 2009-05-05: (no new code release)
2210
2211 * Added "Ramos240x400" skin for 240x400 Pocket PC devices
2212 (Free42PocketPCSkins.zip package). Contributed by Miguel Toro; based on
2213 Ramos480x640 by Noe Ramos.
2214
2215 2009-04-04: release 1.4.48
2216
2217 * Fixed PSE; it no longer freezes the UI for one second, but uses a proper
2218 timeout, so event processing can continue, and keystrokes during PSE have
2219 the proper effect (of stopping program execution and then being handled
2220 normally).
2221
2222 2009-03-04: release 1.4.47
2223
2224 * Another UVEC bug: it should return Invalid Data when the magnitude of its
2225 argument (|z| for complex scalars, FNRM for real matrices) is zero. It
2226 returned its argument unchanged instead. Fixed.
2227
2228 2009-02-22: release 1.4.46
2229
2230 * UVEC returned Invalid Type for complex scalar arguments. Fixed; it now
2231 returns z/|z| (same as the SIGN function for such arguments), like the real
2232 HP-42S.
2233 * When functions with arguments, e.g. STO, FIX, etc., were entered into a
2234 program from the CUSTOM menu, they would get inserted before the current
2235 program line instead of after. Fixed.
2236
2237 2009-01-28: release 1.4.45
2238
2239 * ASTO IND ST X was broken; instead of storing the first 6 characters of the
2240 ALPHA register into the register or variable pointed to by X, it stored them
2241 into the variable pointed to by the first six characters of ALPHA itself.
2242 Fixed.
2243
2244 2009-01-14: (no new code release)
2245
2246 * Added "Lienhard480x800" skin for 480x800 Pocket PC devices
2247 (Free42PocketPCSkins.zip package). Contributed by Thomas Lienhard.
2248 * Added "Sven320x240mini" skin for 320x240 Pocket PC devices
2249 (Free42PocketPCSkins.zip package). This skin only shows the keys for basic
2250 arithmetic and stack manipulation, making the keys large enough to use easily
2251 without a stylus. Contributed by Sven from Vienna.
2252 * Added "Ramos480x640" skin for 480x640 Pocket PC devices
2253 (Free42PocketPCSkins.zip package). It has a distinctive, sparse look.
2254 Contributed by Noe Ramos.
2255
2256 2008-08-16: release 1.4.44
2257
2258 * Made auto-repeat for number entry and ALPHA modes optional. The auto-repeat
2259 feature, introduced in release 1.4.11, is not found on the real HP-42S, and
2260 can cause problems if you don't expect this kind of behavior in a calculator.
2261 It can now be turned off in the Preferences dialog, though the default is
2262 still for it to be on.
2263 Note that this is unrelated to the auto-repeat for the ▲ and ▼ keys, which is
2264 authentic HP-42S behavior, and cannot be turned off.
2265
2266 2008-04-12: release 1.4.43
2267
2268 * MacOS Dashboard version: Fixed event handling so that program execution now
2269 works. There's still plenty of room for improvement: key timeouts (so
2270 pressing and holding a key behaves like it does on the real HP-42S and on
2271 the other Free42 versions) and auto-repeat come to mind... But at least
2272 programs, the solver, the integrator, and interruptible matrix functions
2273 should all be usable now.
2274
2275 2008-03-10: release 1.4.42
2276
2277 * Pocket PC version: I added a HI_RES_AWARE resource so that Free42 will now be
2278 able to take advantage of high-resolution displays without the help of
2279 Tweaks2k2 or similar utilities.
2280
2281 2008-01-11: (no new code release)
2282
2283 * Added "Khor" skin for Windows and Unix versions (Free42Skins.zip package).
2284 Contributed by Michael Khor.
2285
2286 2008-01-01: release 1.4.41
2287
2288 * PalmOS version: When opening the print-out database fails with a 0x0209 error
2289 (database corrupt), it now deletes the database, creates a new one, and tries
2290 again.
2291
2292 2007-12-15: release 1.4.40
2293
2294 * The 'Paste' command now handles binary, octal, and hexadecimal values when
2295 the calculator is in the respective base modes. Note that 'Copy' has
2296 supported non-decimal bases since times immemorial, so this simply makes
2297 clipboard handling consistent at last.
2298
2299 2007-12-15: release 1.4.39
2300
2301 * Windows version: The single-instance option did not work when the previous
2302 instance was minimized. Fixed.
2303
2304 2007-12-14: release 1.4.38
2305
2306 * Windows, GTK and Motif versions: Implemented single-instance option. This is
2307 on by default in the Windows version, but off by default in the GTK and Motif
2308 versions, since many X11 window managers won't let clients raise themselves.
2309 (PalmOS is single-tasking, and Pocket PC enforces single-instance behavior
2310 for all applications, so this option does not apply to those environments.)
2311
2312 2007-12-08: release 1.4.37
2313
2314 * Changed the homepage URL to http://free42.sourceforge.net/.
2315
2316 2007-08-15: (no new code release)
2317
2318 * The Motif version did not compile under Ubuntu 64-bit; its version of g++
2319 considers the loss of precision that occurs when casting a void* to an int to
2320 be a fatal error, and motif/shell_main.cc used such casts in two places
2321 (those casts were legit -- not a bug!). I fixed shell_main.cc so that it
2322 first casts to a long, then to an int: the loss of precision when casting
2323 between integer types is not frowned upon, so this should compile anywhere
2324 with no errors or warnings.
2325 I'm only updating the free42.tgz package, and not releasing any new
2326 executables, since this code change does not actually affect any of the
2327 existing builds.
2328
2329 2007-07-28: (no new code release)
2330
2331 * Added "Ehrling42ss240sq" and "SemiReal240sq" skins for 240x240 Pocket PC
2332 devices (Free42PocketPCSkins.zip package).
2333 * Added information about keyboard mapping to the README files for Pocket PC,
2334 Windows, Motif, and GTK.
2335
2336 2007-05-12: release 1.4.36
2337
2338 * PalmOS 68k version: Under PalmOS < 3.2, importing and exporting programs
2339 would cause a crash, because I was using a Progress Manager API that did not
2340 yet exist in those versions. Fixed now; as it turns out, I never needed that
2341 newer API in the first place; the PalmOS 3.0 version does the job just fine.
2342
2343 2007-05-06: release 1.4.35
2344
2345 * Binary version: AIP would mangle some numbers; the underlying function to
2346 extract the digit in a number's units position was broken. Fixed.
2347 * Decimal version: Modified BCDFloat::_usub() so that it performs the
2348 subtraction using an extended (8-digit) mantissa. This fixes the behavior of
2349 borderline cases like 0.9999999999999999999999999 - 1 (used to yield 0, now
2350 -1e-25) and 1 - 1e-25 (used to yield 1, now 0.9999999999999999999999999).
2351
2352 2007-04-04: (no new code release)
2353
2354 * The "Standard" skin for the PalmOS version (Free42PalmOSSkins.zip package)
2355 had the labels for SST and BST switched. Fixed.
2356
2357 2007-04-01: release 1.4.34
2358
2359 * SOLVER: when the Ridders algorithm made no further progress, because the
2360 interpolated value coincided with one of the interval's endpoints, it would
2361 use the interpolated value as the final estimate of the root, without
2362 checking if it was in fact the best estimate; the best estimate can
2363 sometimes be the opposite endpoint. Added a check to make sure the best
2364 estimate is returned.
2365 * GTK and Motif versions: Now set the WM_WINDOW_ROLE property on all top-level
2366 windows, to allow window managers to use different policies on the various
2367 windows depending on their role. This property is set to "Free42 Calculator"
2368 for the main window, "Free42 Print-Out" for the print-out window, and to
2369 "Free42 Dialog" for all dialogs.
2370
2371 2007-03-23: release 1.4.33
2372
2373 * PalmOS ARM version: Would not run on some Palm Tungsten T models, because
2374 they report an incorrect ROM version number. Made the version number check a
2375 bit more lenient so that it will accept "Development" versions as well as
2376 "Release" versions.
2377
2378 2007-03-20: (no new code release)
2379
2380 * Added "StandardPPCsm" skin for 240x240 Pocket PC devices
2381 (Free42PocketPCSkins.zip package).
2382
2383 2007-02-27: release 1.4.32
2384
2385 * When the BASE application was active, the arithmetic keys and +/- would be
2386 reassigned the BASE+, BASE-, BASE*, BASE/, and BASE+/- functions -- which is
2387 good, but these assignments would stay in effect even if a non-application
2388 menu was active on top of BASE, and that was wrong. Fixed now.
2389
2390 2007-02-18: release 1.4.31
2391
2392 * Decimal version: Floating-point addition would return an incorrectly rounded
2393 result under certain circumstances. Fixed.
2394
2395 2007-02-14: release 1.4.30
2396
2397 * INTEG reported the difference between the final iteration and the one before
2398 in the Y register (the error estimate), but without taking the absolute
2399 value first. As a result, the reported accuracy could be negative. Fixed.
2400
2401 2007-01-27: release 1.4.29
2402
2403 * Decimal version: Did not handle numbers without mantissa correctly while
2404 importing programs (i.e. lines like "E4"; see the notes for release 1.3.5).
2405 The binary version has handled this kind of thing correctly since release
2406 1.3.5, but the decimal version did not. Fixed.
2407
2408 2007-01-06: release 1.4.28
2409
2410 * INTEG used to treat ACC as an absolute error bound, but that is not
2411 consistent with the behavior of the real HP-42S. Fixed; it is now treated as
2412 a relative error.
2413
2414 2006-11-11: (no new code release)
2415
2416 * Added "Realism" skin for high-density (320x320 and higher) PalmOS devices
2417 (Free42PalmOSSkins.zip package). Contributed by Curtis Cameron.
2418
2419 2006-08-21: release 1.4.27
2420
2421 * The int2string() function did not handle numbers with more than 9 digits
2422 correctly. This caused MEM to display gibberish on machines with more than
2423 999,999,999 bytes of available physical memory.
2424 Fixed; also, the code now interprets free memory as an unsigned number,
2425 rather than signed, so that free memory up to 4,294,967,295 bytes should now
2426 be reported correctly.
2427
2428 2006-07-11: release 1.4.26
2429
2430 * PalmOS ARM version: Paste didn't work; it caused a Fatal Exception instead.
2431 Fixed.
2432
2433 2006-06-21: release 1.4.25
2434
2435 * Motif version: Now gets the selected items from the Export Program dialog
2436 using the XmListGetSelectedPos() function, rather than using the
2437 selectedPositionCount and selectedPositions resources; those resources are
2438 a Motif 2.0 feature, and are not supported by the Lesstif library. With this
2439 change, Export Program now works with Lesstif as well as with OpenMotif.
2440
2441 2006-06-19: release 1.4.24
2442
2443 * Under certain conditions, SOLVE would return not the final value in X, but
2444 the previous one (which is also returned in Y). Fixed.
2445 * Pocket PC version: Now building the CAB files using the Cabwiz.exe from the
2446 PPC 2002 SDK, instead of the PPC 2003 SDK. Hopefully this will fix the
2447 problem of Free42 not installing properly on some PPC 2002 devices.
2448
2449 2006-06-09: release 1.4.23
2450
2451 * PalmOS version: Fixed a bug that would cause reading the state file to fail
2452 if there were no variables.
2453 * GTK version: The position of the print-out window would not be remembered if
2454 it was closed when the application exited. It appears that the
2455 gtk_window_get_position() function returns the original position (from the
2456 window's geometry hints) if it is called while the window is not mapped.
2457 I'm now working around this by making sure I get the window position while
2458 the print-out window is actually mapped.
2459 * Windows version: Show Print-Out did not work when the Print-Out window was
2460 minimized. Fixed.
2461 * Decimal version: Changed the definition of POS_HUGE_PHLOAT and
2462 NEG_HUGE_PHLOAT to have a mantissa with 25 nines, rather than 28. (These are
2463 the numbers that are returned when a range error occurs while flag 24 is
2464 set.)
2465 * CLALL did not clear the CUSTOM menu and the programmable menu. Fixed.
2466 * STO+, STO-, and STO/, where the destination was the indexed matrix, would
2467 reset I and J, but that was wrong (only STO and STO* should do that, since
2468 only they can actually cause the destination's dimensions to change).
2469 This caused the MLR program from the HP-42S Programming Examples and
2470 Techniques book to return incorrect results. Fixed.
2471 * In HEXM and OCTM modes, SHOW should display X in decimal, but it showed it in
2472 the selected base instead. On the real HP-42S, SHOW only shows the number in
2473 base in BINM mode, and in decimal in all other modes. Fixed.
2474
2475 2006-05-22: release 1.4.22
2476
2477 * Decimal version: Numbers are always rounded to 25 decimal digits now. The 7-
2478 digit base-10000 representation, which Free42 uses internally, is equivalent
2479 to 25 to 28 decimal digits, but the extra digits tend to introduce noise
2480 which can interfere with the convergence tests of certain iterative numerical
2481 algorithms. Rounding to 25 decimal digits makes Free42 behave like a regular
2482 decimal calculator, preventing such problems.
2483 * GTK version: Explicitly realizes the print widget now, which prevents GTK
2484 warnings being written to the console when print instructions are performed
2485 before the print-out window is first opened.
2486
2487 2006-05-20: release 1.4.21
2488
2489 * Decimal version: For values < 1e-8, SQRT returned results that were a factor
2490 10000 too large. This was due to a bug in the underlying BCDFloat::sqrt()
2491 method, which probably affected other functions as well. Fixed.
2492
2493 2006-05-19: (no new code release)
2494
2495 * Added "HP-42C" voyager-style skins for Windows and Unix (Free42Skins.zip
2496 package). Contributed by Egan Ford.
2497
2498 2006-05-11: release 1.4.20
2499
2500 * GTK version: Added periodic battery check (once per minute). The other
2501 versions already had this. Note that the GTK and Motif versions use /proc/apm
2502 to inspect battery status; on systems without /proc/apm, this check does not
2503 work, and the battery is assumed to always be OK. /proc/acpi support is not
2504 implemented yet.
2505 * All versions except PalmOS: the keyboard handling changes in release 1.4.17
2506 broke auto-repeat from the PC keyboard. Fixed.
2507
2508 2006-05-08: (no new code release)
2509
2510 * HP-41 to HP-42S character code conversion in the rom2raw program did not
2511 work; alpha LBL, GTO, XEQ, and string program lines were not converted.
2512 Fixed, and updated the free42.tgz and rom2raw.zip packages.
2513
2514 2006-05-07: release 1.4.19
2515
2516 * GTK version: Auto-start (flag 11) did not work. Fixed.
2517 * Auto-start did not work if the program counter was at line 00. Fixed.
2518 * When auto-start causes program execution to begin while PRGM mode is active,
2519 any pending command should be cancelled and PRGM mode should be exited before
2520 program execution starts. This wasn't handled properly; fixed now.
2521
2522 2006-05-01: release 1.4.18
2523
2524 * Decimal version: Fixed a bug in exp() that caused it to return wrong results
2525 for very large negative parameters. This affects E^X, SINH, COSH, and TANH.
2526 * Decimal version: Fixed a bug in TANH that caused it to return NaN or other
2527 nonsense for very large parameters.
2528 * Decimal version: Fixed a bug in the BCD20 library that caused -Infinity not
2529 to be recognized as a negative number.
2530
2531 2006-05-01: release 1.4.17
2532
2533 * Pocket PC version: Fixed a couple of cosmetic bugs in menu key highlighting.
2534 * Added support for CShift mappings. These are keyboard mappings that take
2535 effect if the Calculator's Shift annunciator is on. This makes it possible
2536 for [CShift] [Key] to activate a different keystroke or macro than the
2537 unshifted [Key], so you can, for example, make CShift SQRT be something other
2538 than X^2.
2539 * Display repainting is temporarily disabled during macro playback, to prevent
2540 distracting "flashing" for complex macros.
2541
2542 2006-04-23: (no new code release)
2543
2544 * Added 160x160 version of the Standard skin to the Free42PalmOSSkins.zip
2545 package.
2546
2547 2006-04-22: release 1.4.16
2548
2549 * Complex matrices took up twice as much memory as they actually needed, due to
2550 an erroneous extra multiplication by 2 while allocating the memory chunk for
2551 the matrix elements. Fixed.
2552 * Shared matrices now remain shared even after application exit and restart.
2553 * PalmOS version: Removed the 64 kilobyte matrix size limit. Matrix size is now
2554 limited only by available application heap space. (On PalmOS < 3.5, the 64k
2555 limit still exists.)
2556
2557 2006-04-13: release 1.4.15
2558
2559 * Windows and Pocket PC versions: When print commands were executed before the
2560 print-out window was created, the scroll-back buffer would not grow properly.
2561 Fixed.
2562
2563 2006-04-11: release 1.4.14
2564
2565 * PalmOS version: Tweaked the layout of the Preferences dialog a bit. The
2566 version for PalmOS < 3.5 was particularly bad.
2567 * PalmOS ARM version: Export Program would only export the first program in
2568 memory, and write garbage (or even freeze) for any others that were selected.
2569 Fixed.
2570
2571 2006-04-10: release 1.4.13
2572
2573 * New: ARM-native PalmOS version. It's not for everyone -- it's big, it starts
2574 up much slower than the 68k version, and of course you need a Palm with an
2575 ARM CPU -- but once it gets going, it's pretty fast!
2576 Note that the ARM state file is not compatible with the 68K version, so
2577 whenever you switch from the 68K version to the ARM version or back, you will
2578 get the "State File Corrupt" message. Be sure to export all important
2579 programs before switching!
2580 * Implemented instance caching for scalars and strings. This eliminates the
2581 memory management overhead from most simple instructions and speeds up
2582 program execution.
2583
2584 2006-04-04: release 1.4.12
2585
2586 * Pocket PC version: Implemented proper beeper.
2587
2588 2006-04-04: release 1.4.11
2589
2590 * Implemented auto-repeat for number entry and ALPHA modes.
2591 * In the previous release, I broke the annunciators in the Standard skin for
2592 the Pocket PC. Fixed.
2593
2594 2006-04-03: release 1.4.10
2595
2596 * Pocket PC version: Made orange (shifted) legends in the Standard skin a bit
2597 larger. The original 5x4 characters were way too small; hopefully the new 7x5
2598 characters will be more to people's liking.
2599 * Tweaked the PalmOS version of the Ehrling42sm skin a little: I increased the
2600 vertical key spacing by 4 pixels. It has a more balanced appearance now;
2601 should be nicer to use, too.
2602 * PalmOS version: Changed the display background color in the Ehrling42sm,
2603 SemiReal42, SemiReal42HD, and SemiAuto42HD skins, from LCD greenish to gray.
2604 The reason is that the standard PalmOS 8-bit palette does not contain the
2605 right shade of green, so in the skin bitmaps, the color ended up becoming
2606 gray anyway; displaying the actual LCD contents on top of it (which happens
2607 in true color on devices that support it) then gives an ugly appearance.
2608 I modified skin2prc so that it can now also generate true-color (16-bit) skin
2609 bitmaps, but those tend to get pretty big, so I'm not using that
2610 functionality yet while building the Free42PalmOSSkins.zip package; maybe
2611 later, I'll create separate true-color versions of Ehrling42sm etc. to keep
2612 the fans of green happy...
2613
2614 2006-04-02: release 1.4.9
2615
2616 * PalmOS version: Optimized display updating code. For high-density skins,
2617 display updates are now about 3 times faster than before; this should make
2618 HD skins much more usable (more responsive).
2619 * PalmOS version: Added support for tall (320x450) skins.
2620 * Added new "realistic" 320x450 skin to Free42PalmOSSkins.zip package. It's
2621 not great; just a quick-and-dirty, proof-of-concept adaptation of Ehrling42sm
2622 from the Windows/Unix skin collection.
2623
2624 2006-04-01: release 1.4.8
2625
2626 * Changed implementations of X<=Y? and X>=Y? so they now actually return x<=y
2627 and x>=y, respectively; formerly, they returned !(x>y) and !(x<y), which is
2628 fine in most cases, except when NaNs are involved.
2629 * Decimal versions: Rewrote BCDFloat comparison functions so they now handle
2630 NaNs properly; also, inequalities now return correct results for numbers
2631 whose difference is too small to represent (e.g. 1.1e-10000 1e-10000 X<Y?
2632 used to return 'false', because it would subtract the two numbers and then
2633 compare the result to 0 -- with no check for underflow).
2634
2635 2006-04-01: release 1.4.7
2636
2637 * Decimal versions: In BCDFloat::mul(), multiplications by zero could return
2638 values with zero mantissas (good) but nonzero exponents (bad). After several
2639 such multiplications, the exponents could get into the "special" ranges (i.e.
2640 Infinities and NaNs). Result: 0 * 0 => NaN, etc. Fixed.
2641 * Fixed BCDFloat::sub() so that it will not return -0. It used to do that when
2642 computing 0 - 0. I think this was harmless, but I fixed it anyway.
2643 * Added new Pocket PC skin with single-click activation of shifted functions to
2644 Free42PocketPCSkins.zip package. Contributed by Jeff O.
2645
2646 2006-03-26: release 1.4.6
2647
2648 * New: Pocket PC version.
2649 * Added a new voyager-style skin to the Free42Skins.zip package (Windows and
2650 Unix), and created a new package, Free42PocketPCSkins.zip, with skins
2651 specifically designed for the Pocket PC.
2652 * →POL now detects the case that the real and/or imaginary parts are zero, and
2653 returns exact results for those cases.
2654 * Cancelling a partially-entered DEL, LIST, or PRP command in PRGM mode could
2655 cause the instruction pointer to be set to an invalid location. Fixed.
2656
2657 2006-03-19: release 1.4.5
2658
2659 * Decimal version: 1 ACOS returned <Not a Number> instead of 0. Fixed.
2660
2661 2006-03-13: release 1.4.4
2662
2663 * GTK version: When initially presented, the print-out window was not
2664 automatically scrolled to the bottom sometimes. Fixed.
2665 * GTK version: When the print-out window's scroll-back buffer was full, and the
2666 window was not scrolled to the bottom, and print-out took place, the window
2667 would get updated wrong. Fixed.
2668 * In TRACE mode, while running a program, clearing flag 21 should not suppress
2669 auto-print, but it did. Fixed.
2670 * The "Paste" command no longer uses sscanf() to parse real or complex numbers;
2671 instead, it now uses the same string-to-number conversion code that is used
2672 when the user enters a number on the keyboard. This means that numbers like
2673 0.1 can now be pasted in the Decimal version with no binary round-off error.
2674
2675 2006-03-12: release 1.4.3
2676
2677 * GTK version: Refused to close the print-out window. Fixed.
2678
2679 2006-03-11: release 1.4.2
2680
2681 * New: GTK+ version. For Unix users who think Motif is not cool enough. ;-)
2682 * Fixed handling of large complex arguments in ABS and SIGN.
2683 * Decimal version: Fixed a bug in BCDFloat addition and subtraction that could
2684 cause the result to be rounded wrong under certain circumstances.
2685 * Some minor maintenance stuff: changed the type of BASE (in bcdfloat.h) from
2686 'long' back to 'int' in order to make the PalmOS code slightly more
2687 efficient; removed the -O2 option from the MinGW makefile, because the
2688 optimizer was breaking the solver.
2689 * Fixed a bug that could cause the PalmOS version to fail while converting
2690 programs from decimal to binary.
2691
2692 2006-03-03: release 1.4.1
2693
2694 * Decimal version: Fixed a bug in BCDFloat addition and subtraction that could
2695 cause the result to have the wrong sign under certain circumstances.
2696 This seems to have fixed the poor SOLVE performance; apparently that was
2697 *not* caused by transcendentals not being evaluated to the full 28 digits.
2698 * PalmOS version: When entering text using Graffiti, case switching is now
2699 performed even on Graffiti 2.
2700
2701 2006-02-27: release 1.4
2702
2703 * Added decimal floating point, implemented using BCDFloat code by Hugh Steers.
2704 The decimal code is a compile-time option; I can (and will!) still build
2705 Free42 with binary floating point as well.
2706 * Removed "IP Hack" option. It never really did the job anyway, and with the
2707 introduction of the Decimal version, it is now obsolete.
2708 * VIEW, AVIEW, and ADV now talk to the printer when invoked from the keyboard,
2709 even if flag 21 is clear.
2710 * In TRACE mode, when the X register is printed automatically (not because of
2711 an explicit PRX), and it contains a matrix, print only the matrix descriptor,
2712 not its whole contents.
2713 * Fixed handling of large complex arguments in LOG and LN.
2714 * Windows version: The default location for the Free42 directory is once again
2715 the executable's directory. This change only affects new installations; the
2716 Free42 directory location is still stored in the Registry, and any already
2717 existing setting will be honored.
2718 * On hard reset, the printer is enabled now (flags 21 and 55 are set instead of
2719 cleared). This is not what the real HP-42S does, but, then again, the real
2720 HP-42S does not have a built-in printer, while Free42 does; this new behavior
2721 should be more intuitive.
2722 (Note: flags 21 and 55, and the PRON and PROFF commands, still work as
2723 before; the only change is their initial setting.)
2724 * Fixed a crash that could occur when ridiculously large numbers were used for
2725 indirect addressing (meaning numbers >= 2147483648 absolute).
2726
2727 2006-02-10: release 1.3.17
2728
2729 * Clicking in the display now only activates softkeys if a menu is active. This
2730 means that programs that "fake" menus by painting in the display and calling
2731 GETKEY are no longer supported -- but then again, you can still use the top
2732 six keys of the keyboard in that case, and for all I know there is only one
2733 program on the whole planet that actually does a fake menu (hi Erik :-) ).
2734 * Code import now converts "" (empty string, a synthetic HP-41 construct) to
2735 |-"", instead of dropping it on the floor. This is consistent with the
2736 behavior of "" on the 41: it is a NOP, sometimes used after DSE or ISG, in
2737 cases where the 'skipping' behavior of those functions is not wanted.
2738 * In lowercase print mode (flag 13 set), functions with hidden characters,
2739 e.g. COMPLEX/CPLX, were printed wrong ("cOMplEx" instead of "complex").
2740 Fixed.
2741 * Added rom2raw.c to the source tree. This is a program that extracts user code
2742 from *.ROM format HP-41 module images; it converts XROM calls to user code
2743 within the same module to XEQ, and warns about all other XROMs (except the
2744 ones that correspond to HP-42S instructions). At some point it would be nice
2745 to integrate module support into Free42 itself; meanwhile here's hoping this
2746 will also be useful. I'll put it on my web page as a separate download,
2747 complete with a ready-to-run Windows executable, once I iron out the
2748 wrinkles.
2749 * Added KR and Widgi42 skins (for the Motif & Windows versions).
2750 Contributed by Klaus Reckermann.
2751
2752 2006-02-07: release 1.3.16
2753
2754 * A few obscure printing fixes (PRX now prints complex scalars left-justified
2755 if they do not fit on one line; the same now happens for command printing in
2756 NORM and TRACE modes).
2757 * Modified most skins so all the sensitive rectangles are now as large as
2758 possible, making keys easier to hit with the mouse. (The sensitive rectangle
2759 for a key is the area on the screen where a mouse click will cause the key to
2760 be pressed; in several skins this area was the size of the keys themselves,
2761 but after this modification, the area extends several pixels beyond the keys,
2762 meaning you can be a bit sloppier now, which is good because it reduces
2763 strain on the arm muscles and tendons.)
2764 I did not change the Semi-Auto skins yet, because my automatic rectangle-
2765 stretching program currently only handles 37-key layouts. Fortunately, the
2766 Semi-Auto skins already have large sensitive rectangles, which cannot be
2767 enlarged much further anyway. (I know, lame excuse!)
2768 * In skins/SemiReal42.gif and palmskins/SemiReal42HD.gif, moved the R↓ key one
2769 pixel to the left. It's been annoying me forever -- can't think why I didn't
2770 fix this earlier. :-)
2771
2772 2006-02-06: release 1.3.15
2773
2774 * The PRX command no longer prints three asterisks when printing a complex
2775 number or a matrix. Also, when printing a matrix, in addition to printing
2776 the descriptor line (as shown in the display), it now prints the matrix
2777 contents as well. These changes bring the Free42 PRX command in line with
2778 the HP-42S.
2779 * Windows & Motif versions: Fixed handling of PC keyboard key rollover (i.e.
2780 pressing a key before the previous key is released). This should fix the
2781 problem of keystrokes being missed when typing rapidly.
2782 * Windows & Motif versions: When the A..F menu in the BASE application is
2783 active, the A through F keys are now mapped to the corresponding menu keys,
2784 regardless of the keyboard map -- so you can now enter a number like FCE2
2785 without having to use the mouse or the F1-F6 keys.
2786 * Added MacOS Dashboard version to the source distribution. No binary
2787 distribution, alas, because I don't have a MacOS X build environment.
2788 MacOS Dashboard code written by D. Jeff Dionne.
2789
2790 2006-02-01: release 1.3.14
2791
2792 * Windows version: Added always-on-top feature.
2793 * Windows version: In the previous release, when I fixed the code that saves
2794 the window positions when exiting using the OFF command, I broke the code
2795 that saves the window positions when exiting using the close box and the Quit
2796 command. Fixed, so now window positions should be remembered correctly
2797 regardless of how Free42 is exited.
2798
2799 2006-01-29: release 1.3.13
2800
2801 * Fixed behavior of Y^X for certain special cases (namely, 0^(0,0); (0,0)^0;
2802 (0,0)^(0,0); 0^(1,0); (0,0)^(1,0). Note that the first three of those now
2803 return (1,0); this is not consistent with the real HP-42S, which returns
2804 "Invalid Data", but it is consistent with the way Free42 already treated
2805 0^0).
2806 * SIN, COS, P→R, and COMPLEX, when used in DEG and GRAD modes, now return exact
2807 results for multiples of 90 degrees (100 grads). Also, the TAN function now
2808 returns exact results for multiples of 45 degrees (50 grads).
2809 * Added range checks to the complex versions of SIN and COS.
2810 * In PRGM mode, the A..F command in the BASE menu now says "Restricted
2811 Operation".
2812 * Windows version: When exiting the emulator using the OFF command (shift-EXIT
2813 or XEQ "OFF"), the positions of the main and print-out windows would not get
2814 updated in the state file.
2815
2816 2005-06-20: release 1.3.12
2817
2818 * Motif version: Closing the print-out window did not work in the Cygwin build.
2819 The problem appears to be in the Cygwin Lesstif library: the XmUNMAP setting
2820 for the deleteResponse resource in TopLevelShell does not work.
2821 I now work around this by using the XmDO_NOTHING setting instead, and calling
2822 XWithdrawWindow() explicitly in the WM_DELETE_WINDOW protocol handler.
2823
2824 2005-06-19: release 1.3.11
2825
2826 * DOT did not drop the stack; it placed the result in X but left Y intact.
2827 Fixed.
2828
2829 2005-06-14: release 1.3.10
2830
2831 * PalmOS version: In the file selection dialog, sorting was broken. It sorted
2832 the volume list, which it shouldn't, and when sorting directory listings, it
2833 sorted the names but not the types, and it did not force directories to the
2834 top of the list. Oops! So many bugs in such a trivial enhancement... Well,
2835 it's fixed now, and I'm taking a vacation from this project. :-)
2836
2837 2005-06-14: release 1.3.9
2838
2839 * PalmOS version: In the file selection dialog, file names are now sorted
2840 alphabetically.
2841
2842 2005-06-09: release 1.3.8
2843
2844 * PalmOS version: Added Copy and Paste icons to the command bar for the
2845 calculator form.
2846 * PalmOS version: The Edit and Skin menus were switched in the print-out form.
2847 Fixed.
2848
2849 2005-05-12: release 1.3.7
2850
2851 * PalmOS version: Hardware Up and Down keys now scroll the print-out window.
2852
2853 2005-05-12: release 1.3.6
2854
2855 * Windows version: Fixed computation of scroll bar width, so Windows 2000 users
2856 who use "Large Fonts" (or otherwise wider-than-normal scroll bars) don't lose
2857 pixels at the right edge of the print-out window.
2858 * PalmOS version: Pressing and holding the 5-way navigator's center button now
2859 exits to the Application Launcher (this is an automatic PalmOS behavior,
2860 which I had unintentionally sabotaged before by mis-handling auto-repeat
2861 events).
2862
2863 2005-05-11: release 1.3.5
2864
2865 * Improved import of HP-41 programs: numbers with exponent but no mantissa are
2866 now handled correctly (e.g. 'e4' becomes '1e4', rather than '0'); XROM
2867 instructions that do not correspond to HP-42S built-in functions are now
2868 imported as XROM instructions, rather than being skipped.
2869 Note that XROM instructions always return the "Nonexistent" error message, so
2870 HP-41 programs that rely on non-HP-42S extensions still won't actually work
2871 in Free42, but at least now you will be able to see more easily *why* such
2872 programs fail.
2873 * PalmOS version: PalmOS 5.0 (and 5.1?) has a bug in FileControl(): the
2874 fileOpGetOpenDbRef command returns a bogus value; when using this value in
2875 subsequent Data Manager calls, a crash results. This was noticed on a Palm
2876 Tungsten T and on PalmOS Simulator 5.
2877 This bug caused Free42 to crash on exit on some devices (it would crash while
2878 trying to set the "backup" bit on the Free42State file). I changed my code so
2879 that it obtains the necessary information another way.
2880 * Motif version: Fixed a bug that could cause a crash whenever a file selection
2881 dialog was created. I never noticed it causing a problem in Linux, but it
2882 did crash the Cygwin build, and it was incorrect code anyway. Fixed now.
2883
2884 2005-04-21: release 1.3.4
2885
2886 * PalmOS version: Yet another 'program import' bug, this time due to a
2887 difference of opinion between gcc and g++ about sign extension. Fixed.
2888
2889 2005-04-21: release 1.3.3
2890
2891 * PalmOS version: Program import and HP-41 synonym lookup were broken, again
2892 apparently because the PalmOS version of g++ does not handle const globals
2893 properly. I removed the 'const' qualifier from a few lookup tables and that
2894 seems to have solved the problem.
2895
2896 2005-04-21: release 1.3.2
2897
2898 * PalmOS version: Added key click sound, to give the user audible feedback when
2899 Free42 receives a key press (pen tap) on the emulated keyboard.
2900 * Added skins with single-click activation for shifted keys (Windows/Motif and
2901 high-density PalmOS versions). Contributed by Jeff O.
2902 * Added compact version of Erik Ehrling's realistic skin (Windows/Motif only).
2903 Contributed by Michael Vogel.
2904
2905 2005-04-06: release 1.3.1
2906
2907 * In the previous release, I broke the FCN catalog in the PalmOS version.
2908 Those pesky 'const' globals again! Oops...
2909
2910 2005-04-06: release 1.3
2911
2912 * Converted the project to C++ in preparation for implementing BCD support.
2913
2914 2005-03-23: release 1.2.10
2915
2916 * The code in →HMS, HMS+, and HMS-, that was supposed to prevent results such
2917 as →HMS(61/60) = 1.006 (by adding 0.4 to fix the minutes, or 0.004 to fix the
2918 seconds, to get 1.01 in this example) was incorrect; it would apply the
2919 correction in cases where the intermediate result was rounded down due to
2920 binary round-off; this would cause →HMS(119/60) to return 1.594 instead of
2921 1.59. Fixed by making the test for when to perform the adjustment more
2922 accurate.
2923
2924 2005-03-21: release 1.2.9
2925
2926 * PalmOS version: Fixed a couple of problems with the hardware Up and Down
2927 keys: auto-repeat events are now ignored (Free42 handles that on its own),
2928 and SST in RUN mode now shows the instruction to be executed, and goes to
2929 NULL, if held down for 1/4 second and 2 seconds, respectively.
2930
2931 2005-03-21: release 1.2.8
2932
2933 * Motif version: File selection dialogs now use option menus for file type
2934 selection. The only remaining difference between these, and the Windows and
2935 PalmOS versions, is that the Motif version uses case-sensitive matching, so
2936 the "*.raw" filter won't match "foo.RAW". You'd think this would be a
2937 simple matter of using a custom file search procedure, but there turn out to
2938 be weird side effects (with Open Motif 2.2.2, though not with Lesstif,
2939 interestingly enough). That'll require some more research.
2940 * Motif & Windows versions: Did not repaint the skins after skin switching in
2941 certain circumstances. I added code to force a full repaint.
2942 * Windows version: The message and title on several message boxes were
2943 switched. I guess nobody ever saw those messages anyway. :-)
2944 * Did some serious spring cleaning in my TODO list. There were a lot of goals
2945 there, which, to my mind, were just too much effort for too little gain.
2946 At this moment, BCD and Pocket PC support are my only *serious* remaining
2947 objectives, apart from continuing to fix bugs of course.
2948 Maybe I will reconsider some of the deleted objectives eventually, but that's
2949 unlikely to happen before the gloomy days and long nights of winter return
2950 (oh, how conducive they are to the coding mind-set!). I'll keep them off the
2951 TODO list, so as to avoid giving the impression that stuff like a larger
2952 display or algebraic equations are actually planned and likely to arrive
2953 sometime soon, and also to give myself the satisfied feeling of "not much
2954 left to do". :-)
2955
2956 2005-03-20: release 1.2.7
2957
2958 * Windows version: Could not write the registry value to store the Free42
2959 directory location (HKEY_CURRENT_USER\Software\Thomas Okken Software\Free42
2960 \HomeDir) unless the parent key existed already -- which, unless you have the
2961 Free42 Conduit for the PalmOS version installed, it won't! Oops! Fixed now.
2962
2963 2005-03-20: release 1.2.6
2964
2965 * Windows version: With the ALPHA menu active, some PC keys that generate
2966 printable ASCII codes (e.g., shift-equals for '+'; also backslash, period,
2967 comma) were not handled properly and went through the regular non-ALPHA
2968 mapping, meaning the corresponding characters could not be typed directly.
2969 Fixed.
2970 * PalmOS version: The hardware "Up" and "Down" keys are now mapped to the
2971 emulated ▲ and ▼ keys.
2972 * 'Paste' didn't enable stack lift. It does now.
2973 * 'Paste' now accepts numbers in the same format that 'Copy' produces, which is
2974 the format used on the calculator's display -- so flag 28 controls whether
2975 '.' or ',' is the decimal. Thousands separators are ignored regardless of the
2976 setting of flag 29.
2977 * 61 ENTER 60 / →HMS now returns 1.01 instead of 1.006. I added a check to see
2978 if round-off after the final computation step caused the seconds or minutes
2979 to reach 60. I also added this same check to HMS+ and HMS-.
2980 * Clicking in the bottom half of the display now activates "soft" (menu) keys.
2981 This actually means you now simply have another way of clicking the six keys
2982 in the top row of the keyboard, but the visual feedback is different, and
2983 some may find it more intuitive than clicking the keyboard keys when working
2984 with menus.
2985 * Windows version: Now allows 'Alt' to be used in keyboard mappings. I'm a bit
2986 uneasy about my keyboard message handling code; it took some trial and error
2987 before I got to the point where Free42's mappings were coexisting with the
2988 standard Windows Ctrl/Alt behavior in the menu bar, and I don't fully
2989 understand *why* my code works. Maybe that's just what programming Windows is
2990 supposed to be like <g>. Anyway, if it turns out that this code breaks on
2991 more recent versions of Windows (I use 98SE myself), I'm sure I'll hear about
2992 it, and if so, I'll just rip it out. The code that deals only with Ctrl and
2993 Shift seems to have been fine, so I can always fall back on that if need be.
2994 * Windows version: Now allows the user to choose the location of the Free42
2995 directory (meaning, the directory where the state, print-out, keymap, and
2996 skin files are stored). Also, skin files are now looked for in the Free42
2997 directory *and* in the directory containing the executable, so a shared
2998 installation of Free42 can also have a shared set of skins.
2999
3000 2005-03-18: release 1.2.5
3001
3002 * Skins now handle multiple keys with the same key code properly: the key that
3003 is clicked is the one that is highlighted, instead of the last matching one
3004 in the layout description; and when a PC keyboard key is pressed that is
3005 mapped to a calculator key for which multiple keys exist in the skin
3006 description, the first one is highlighted, instead of the last one.
3007 * Macro keys: in the *.layout files, it is now possible to define keys with
3008 keycodes in the range 38..255; these keys are mapped using "Macro:"
3009 definitions in the same *.layout file. The macro is a sequence of zero or
3010 more standard key codes (1..37).
3011 * Windows & Motif versions: Key mappings can now be defined in the skin
3012 *.layout file. The syntax is identical to that used in the keymap.txt/keymap
3013 file. When the skin maps a key that is also mapped in the default keymap
3014 file, the skin's mapping takes precedence.
3015 Note that such customized *.layout files are OS-dependent, since the way PC
3016 keyboard keys are specified is different between Windows and Motif: Windows
3017 uses numeric key codes, while Motif uses X11 KeySyms.
3018
3019 2005-03-18: release 1.2.4
3020
3021 * PalmOS version: The Delete Skin feature would crash when there were no
3022 external skins installed. Fixed.
3023
3024 2005-03-16: release 1.2.3
3025
3026 * DELR, with 'I' pointing to the bottom row, would leave 'I' pointing past the
3027 bottom of the matrix, and, when used in EDIT or EDITN mode, display a bogus
3028 value in X. When writing a new value to the matrix after this happens, memory
3029 corruption could result. Fixed now.
3030
3031 2005-03-15: release 1.2.2
3032
3033 * PalmOS version: Added a feature to let the user remove external skins (i.e.
3034 skins that aren't built into Free42, but that were installed as separate
3035 PRC files). So, now you don't need to use Filez any more to accomplish this
3036 task, never mind having to uninstall everything and start all over.
3037 * PalmOS version: On devices with Graffiti 1, upper- and lower-case characters
3038 are now switched, so that uppercase characters are easier to enter. This was
3039 done because uppercase is much more common than lowercase in Free42. On
3040 devices with Graffiti 2, case switching is not performed, since there
3041 uppercase requires no extra gestures, but can be entered simply by jotting in
3042 the center of the input area.
3043 * Added two new skins to the Free42PalmOSSkins.zip package, and another to the
3044 Free42Skins.zip package. Thanks to Jeff O. for contributing these!
3045
3046 2005-03-15: release 1.2.1
3047
3048 * Windows version: In 1.2, I broke the Skin menu so switching skins didn't work
3049 any more. Fixed now.
3050
3051 2005-03-14: release 1.2
3052
3053 * Implemented simple Copy and Paste: 'Copy' puts a text representation of the
3054 X register on the clipboard (identical to what you see in the display, except
3055 the exponent 'E' in numbers is changed to a plain lowercase 'e'); 'Paste'
3056 tries to parse the clipboard contents as a complex number (formatted as
3057 "a ib", "a + bi", or "(a, b)", or if that fails, as a real number; if it
3058 can't parse the clipboard, it just pastes it as a string.
3059
3060 2005-03-13: release 1.1.19
3061
3062 * Using the keyboard to enter the first character of a LBL name or number
3063 caused a crash (all versions). Fixed.
3064 * Windows and Motif versions: The 0-9 keys on the PC keyboard now act like the
3065 number keys on the virtual keyboard *even* at the beginning of a LBL. This
3066 allows the keyboard to be used to enter numeric labels.
3067
3068 2005-03-13: release 1.1.18
3069
3070 * PalmOS version: Improved support for PalmOS < 3.5: now has a sound volume
3071 control in the Preferences dialog (ugly but functional); and now allows skin
3072 switching (using a dialog instead of a dynamic menu).
3073 * Motif and Windows versions: Implemented keyboard mapping. When Free42 is run,
3074 it looks for $HOME/.free42/keymap (Motif) or "My Documents"\Free42\keymap.txt
3075 (Windows), and if it doesn't exist, it creates a new one, which provides
3076 mappings for all calculator keys and also contains comments explaining the
3077 keymap file format.
3078 * PalmOS version: Now accepts Graffiti input when the ALPHA menu is active.
3079 Printable ASCII characters (codes in the range 32..126), and Backspace and
3080 Enter, can be entered this way.
3081 * Motif and Windows versions: Now accept keyboard input when the ALPHA menu is
3082 active. Keystrokes that do not correspond to printable ASCII characters
3083 (codes in the range 32..126) are handled according to the keyboard mapping
3084 (see above).
3085
3086 2005-03-08: release 1.1.17
3087
3088 * PalmOS version: Relaxed system requirements to PalmOS 3.0 or later (it used
3089 to require 3.5 or later). Note that the oldest PalmOS version this has
3090 actually been tested with is 3.3 (so far). Also note that pre-3.5, there are
3091 a couple of restrictions: the volume control in the Preferences dialog is
3092 missing, because pre-3.5 does not support sliders; the Skin menu only shows
3093 one item named "Default", because pre-3.5 does not support dynamic menus (and
3094 I have been too lazy to work around that using a dialog box; since pre-3.5
3095 does not have color, I figure there's not that much need for changing skins
3096 anyway), and there may be other miscellaneous bits of flakiness (e.g. pen
3097 events on menus getting reported to the underlying form as well -- this can
3098 lead to surprising behavior). So, bottom line, you can now use Free42 on your
3099 trusty old Palm V etc., but I still *recommend* PalmOS 3.5 or later.
3100
3101 2005-03-07: release 1.1.16
3102
3103 * PalmOS version: Implemented pluggable skin support. Skins are PRC files that
3104 are generated from the same type of *.layout and *.gif files that the Windows
3105 and Motif versions use directly.
3106
3107 2005-03-02: release 1.1.15
3108
3109 * SOLVE: When the secant extrapolation makes no more progress (the extrapolated
3110 value coincides with one of the previous two 'x' values), we assume we've
3111 found a root -- but the code would not necessarily return the right 'x' to
3112 the X register. This means that when the iteration was started with one
3113 starting value being a root, and the other starting value being way off, the
3114 way-off value could be returned in X. Oops! Fixed now.
3115 * SOLVE: when the search for a sign change reaches infinity, it would report
3116 the final value of X to be POS_HUGE_DOUBLE or NEG_HUGE_DOUBLE. That wasn't
3117 really correct, since it would return that value without actually having
3118 evaluated the function at that point. I changed it so that it returns the
3119 last 'x' that was actually used.
3120 * Windows version: The Free42State.bin and Free42Print.bin files are now called
3121 state.bin and print.bin, respectively, and they're no longer stored in the
3122 directory containing Free42.exe, but rather in "My Documents"\Free42 (this
3123 directory is automagically created if necessary). Storing the state under
3124 My Documents means multiple users sharing one PC no longer share one Free42
3125 state.
3126 * Windows version: Implemented pluggable skin support. Each skin consists of a
3127 pair of files, named <skinname>.layout and <skinname>.gif. Skins are loaded
3128 from the "My Documents"\Free42 directory; this is also the directory where
3129 Free42 stores its persistent state, starting with this release.
3130 * In the "Standard" skin (Standard.gif), 10^X and E^X were swapped. Fixed now.
3131 * Motif version: Three XtVaSetValues() calls were missing the final NULL
3132 parameter, which could cause segmentation faults. Miraculously, this never
3133 seems to have done any harm in my Linux/x86 builds, but it did cause a crash
3134 under MacOS X, and it's wrong anyway. Fixed now.
3135
3136 2005-02-27: release 1.1.14
3137
3138 * Removed "f42" program file format support. The f42 format wasn't portable: it
3139 was just a dump of Free42's in-memory representation of programs, and the way
3140 noninteger number literals are stored (as native 'double') was a potential
3141 source of trouble, because of endianness and because of format differences
3142 (in case anyone is running Free42 on a non-IEEE-754 platform).
3143 At present, the format isn't needed anyway, because the Free42 instruction
3144 set is identical to that of the HP-42S, so all Free42 programs can be
3145 unambiguously encoded using the "raw" format; by the time I start extending
3146 the instruction set, I'll have to design a new format (without f42's
3147 portability problems!) or just define extensions to "raw", using the same
3148 mechanisms that were used to add the HP-42S instructions to the HP-41C
3149 instruction set (XROM and special strings).
3150 * Because programs are now only stored in HP-42S-compatible "raw" files, there
3151 is no longer any point in showing program sizes in Free42 units, so the
3152 "HP-42S byte counts" option has been removed from the Preferences dialog, and
3153 program sizes are now always shown in HP-42S units.
3154 * Pluggable skin support (Motif version only at the moment; this will be added
3155 to the PalmOS and Windows versions in the next week or so).
3156
3157 2005-02-11: release 1.1.13
3158
3159 * It wasn't possible to enter FIX/SCI/ENG IND nn when nn > 11; in that case, nn
3160 would be changed to 11 -- which is the right thing to do for FIX/SCI/ENG nn,
3161 but not for the IND case. Fixed.
3162 * In the previous release, I was a bit too zealous about deleting the code that
3163 handles ARGTYPE_COMMAND for FCN catalog assignments: I mistakenly removed the
3164 code that displays and executes this type of assignment in a program. Oops!
3165 It's restored now. Note: it has not been possible to *create* such program
3166 lines since release 1.1.5 (see the first item in the release 1.1.5 notes,
3167 below), but this code is needed for compatibility with programs created with
3168 Free42 release 1.1.4 and earlier.
3169
3170 2005-02-11: release 1.1.12
3171
3172 * SOLVE: if the search for two points with function values with opposite signs
3173 reaches infinity suspiciously quickly (in less than 10 steps), and only one
3174 initial guess was given, retry with initial guesses of 0 and 1.
3175 This can help in some cases where the left-over value in the variable, and
3176 the previous starting value, are identical (and misleading), and no new
3177 starting value was given before invoking SOLVE.
3178 * When entering a LBL command, it wasn't possible to specify the label name by
3179 selecting it from a catalog -- the top-level catalog could be brought up, but
3180 pressing any of its keys would take you back to the ALPHA menu.
3181 * It wasn't possible to enter commands with IND "string" arguments by selecting
3182 the argument from the FCN catalog; the IND would disappear in that case.
3183 * Fixed a couple of extremely obscure Free42/HP-42S incompatibilities:
3184 1) When a program line like LBL "ENTER" is created by selecting ENTER from
3185 the FCN catalog, the label now contains the command name with "meta"
3186 characters for the letters that are suppressed in the FCN catalog (e.g., the
3187 second E in ENTER) -- so the string ENTER in this example is encoded as 0x45,
3188 0x4E, 0x54, 0xC5, 0x52. This means that, with a label as above, GTO "ENTER",
3189 with the word ENTER typed using the ALPHA menu, now results in "Label Not
3190 Found", since in that case, the string ENTER is encoded as 0x45, 0x4E, 0x54,
3191 0x45, 0x52, which does not match the label.
3192 Note that this does not just apply to LBL and GTO, but in *all* situations
3193 where the FCN catalog is used to create a string argument.
3194 2) In ASSIGN, when the command to be assigned is selected from the FCN
3195 catalog, it is now assigned by name, and no longer by command ID. This means
3196 that such assignments can now change meaning if a label or variable with a
3197 matching name is created (as was already the case when the command name was
3198 entered by any means *other* than the FCN catalog).
3199
3200 2005-02-10: release 1.1.11
3201
3202 * SOLVE: if the search for two points with function values with opposite signs
3203 reaches infinity suspiciously quickly (in less than 10 steps), assume that
3204 the larger of the initial guesses is bad, and retry with just the smaller.
3205 This can help in some cases where a left-over value in the variable to be
3206 solved for can send SOLVE in the wrong direction.
3207
3208 2005-02-02: release 1.1.10
3209
3210 * Another DET problem: the fix in 1.1.9 was itself broken; it would set 'det'
3211 to 1 each time the real-valued LU decomposition worker procedure was entered,
3212 instead of only doing that the first time; this would not cause a problem if
3213 the matrix in question was small enough to be decomposed in only 1 invocation
3214 of the worker (12x12 or less), but result in bogus determinants otherwise.
3215 Fixed.
3216 * Yet another couple of DET bugs: singular matrices weren't handled properly:
3217 in "Singular Matrix" mode, they would return the "Singular Matrix" error,
3218 instead of 0, and when "Singular Matrix" mode was off, they would return a
3219 small value that resulted from the HP-42S-compatible zero-pivot fudging that
3220 takes place in that mode (it shouldn't do that fudging when computing only
3221 the determinant, regardless of whether "Singular Matrix" mode is on or off).
3222 Both of those bugs applied to both the real and complex cases; they're all
3223 fixed now.
3224 * The "left arrow", "right arrow", "up arrow", and "down arrow" commands for
3225 matrix editing (EDIT/EDITN/INDEX) did not work correctly when editing a 1x1
3226 matrix. Fixed.
3227
3228 2005-02-02: release 1.1.9
3229
3230 * DET returned bogus results for real nonsingular matrices -- nasty bug that I
3231 introduced when I made the LU decomposition code interruptible in release
3232 1.0.17 (the 'det' field in the LU decomposition state was not initialized to
3233 1 at the start of the decomposition). The complex case did work correctly;
3234 the real case does so too, again, now.
3235
3236 2005-01-31: release 1.1.8
3237
3238 * It was possible to enter and leave PRGM mode while in the middle of command
3239 entry. Fixed.
3240 * It wasn't possible to enter the number -2147483648 as a program line. Fixed.
3241 * Flag 47 was set when VARMENU was active, *and* when the variable menus in the
3242 SOLVE and INTEG applications were active. It should *only* be set when the
3243 regular VARMENU is active. Fixed.
3244 * Flags 76 and 77 (matrix edge wrap, and matrix end wrap, respectively) were
3245 set wrong by the I+, I-, "up-arrow", and "down-arrow" commands: when the
3246 top/bottom edge was crossed, flag 77 would be set (should have been 76), and
3247 when it jumped from the top-left corner to the bottom-right (or vice versa),
3248 flag 76 would be set (should have been 77). Fixed. Note: J+, J-,
3249 "left-arrow", and "right-arrow" did the right thing already.
3250 * GETKEY no longer causes the display to be refreshed.
3251 * GETKEY now turns off the 'running' annunciator while it is waiting.
3252 * If Free42 is exited while GETKEY is waiting (or if the power was cycled
3253 (PalmOS only)), it returns code 70 (OFF) and stops program execution, just as
3254 if OFF had been pressed twice on a real 42S: once to get out of GETKEY and
3255 stop the program, and again to actually switch the calculator off.
3256 * PalmOS version: If the system requests permission to perform auto-poweroff,
3257 and Free42 refuses while a GETKEY is pending, GETKEY returns 70, program
3258 execution continues (if applicable), and the power stays on. (This is how it
3259 works on the real HP-42S, too; presumably, the idea is to allow GETKEY-using
3260 programs to implement battery-friendly behavior.)
3261
3262 2005-01-29: release 1.1.7
3263
3264 * When XEQ was performed in a program, while the return stack was already full,
3265 the previous top-of-stack would be lost (really silly off-by-one error in the
3266 code that shifts the stack for this case). I noticed this while playing Erik
3267 Ehrling's Okie Dokie: it would start to act weird if you played 8 fields in
3268 a row. Oops!
3269
3270 2005-01-29: release 1.1.6
3271
3272 * In store_var(), added a check to see if the target variable is the indexed
3273 matrix; if it is, I and J need to be reset to 1 (top-left corner). Without
3274 this, the code was not HP-42S compatible, and what's worse, it could leave
3275 I and J pointing outside the new array, so that a subsequent STOEL would
3276 cause memory corruption.
3277
3278 2005-01-27: release 1.1.5
3279
3280 * When storing ASSIGN in a program, and the function to be assigned was
3281 selected from the FCN catalog, the function's opcode would be stored with the
3282 instruction, rather than its string representation. As far as Free42 itself
3283 is concerned, this is fine, but it is not how the HP-42S works, and what's
3284 worse, the "raw" mode export code and the HP-42S-compatible byte counter both
3285 couldn't handle it, and generated bogus code and nonsense byte counts.
3286 I decided to kill all birds with one stone by forcing the FCN-to-string
3287 conversion in store_command(); for backward compatibility, export_hp42s() and
3288 hp42s_size() now handle the FCN version correctly as well.
3289 * It wasn't possible to enter DIM IND, EDITN IND, INDEX IND, INTEG IND ST, and
3290 SOLVE IND ST. Fixed.
3291 * Thanks to Vini Matangrano for stress testing Free42's command entry and thus
3292 finding these bugs & bringing them to my attention!
3293
3294 2005-01-26: release 1.1.4
3295
3296 * PalmOS version: When printing to GIF, and the GIF file name field in the
3297 preferences dialog was blank, the resulting files would be named .0000.gif
3298 etc., which is OK, but the path that was stored in the file's data records
3299 would be //.0000.gif -- and that extra slash would make the file impossible
3300 to delete. This is now fixed, but if you have a Free42 filesystem with such
3301 undeletable files, you will have to download the entire filesystem to a PC,
3302 then erase it, and then upload it back to the Palm. This will get rid of all
3303 bad pathnames. Simply resetting the Palm while Free42 is running will *not*
3304 fix this problem; resetting the Palm with Free42 active causes the directory
3305 to be rebuilt using information from the data record headers, but in this
3306 case, the problem isn't the directory at all, it's the data record headers,
3307 and fixing *them* requires the download-erase-upload method.
3308 * PalmOS version: No longer allows open files to be deleted from the Free42
3309 filesystem.
3310 * Motif version: The .free42rc and .free42print files are now called
3311 .free42/state and .free42/print, respectively; creating the .free42 directory
3312 was necessary anyway in preparation for pluggable-skin support (gotta put
3313 those skins somewhere!), and so I moved the state and print-out files there,
3314 too, in order to clean up the home directory a little.
3315 * CLP would not update the current_prgm index. This meant that if the current
3316 program was after the deleted program, the pc could end up pointing at an
3317 invalid location, and if the current program was the last program, the
3318 current_prgm index would end up pointing beyond the end of the prgms array;
3319 this could lead to memory corruption or a crash. Now fixed.
3320
3321 2005-01-21: release 1.1.3
3322
3323 * Multi-row VARMENUs could cause a crash when switching rows. Fixed.
3324 * When a command is completed by making a selection from the PGM catalog, the
3325 selected label or END is now echoed on the screen, even if the key isn't held
3326 down for 1/4 a second. This is necessary for commands that take a long time
3327 to execute: when printing a program, you should not be seeing PRP "_ while
3328 the program is being printed; the display should show the full PRP "name",
3329 which it now does.
3330 * PalmOS version: MEM now reports the number of free bytes in the dynamic
3331 (application) heap, rather than the total number of free bytes in the system.
3332 This is better because the dynamic heap is where Free42 actually stores
3333 programs and variables, and it can get full even though the system as a whole
3334 still has lots of free space.
3335
3336 2005-01-19: release 1.1.2
3337
3338 * PRP & LIST: in strings and in string arguments, translate character code 10
3339 (LF) to 138, so that it shows up properly in text-mode program listings,
3340 rather than becoming an actual line break. In "raw text" listings, this means
3341 it becomes Ctrl-Meta-J, but that's the best I can do, I guess. In "normal"
3342 mode listings, it is now rendered as "\LF". Graphics-mode listings (GIF and
3343 on-screen) already did the right thing.
3344 * It was possible to do SST and BST while in the middle of command entry; this
3345 made it possible to go to line 00 and have an instruction inserted in the
3346 program at pc = -1, which caused memory corruption because it would write a
3347 byte before the start of the program block. (Line 01 corresponds with pc = 0,
3348 in other words, the pc is a byte offset from the beginning of the program;
3349 pc = -1 is a special value used to indicate line 00, which isn't a physical
3350 program line at all.) I plugged the SST/BST hole and for good measure, I also
3351 added a check to store_command() to make sure that it never inserts anything
3352 at pc = -1.
3353 * PalmOS version: When a file was deleted from the Free42 filesystem, and the
3354 directory entry immediately preceding it was a directory, that directory
3355 would be resized just as if the deleted file had been in it, resulting in a
3356 bogus directory length and a corrupted directory structure (which can be
3357 repaired by resetting the Palm while Free42 is running; when this happens,
3358 Free42 will rebuild the directory the next time it starts up). Fixed now.
3359 * Windows & Motif versions: GIF file names looked like foobar0000.gif, should
3360 be foobar.0000.gif, like in the PalmOS version. Fixed.
3361 * Motif version: When the print window scrolls because of a print command,
3362 while it is partially obscured, the region that is scrolled out from under
3363 the obscuring window did not get painted. I added a GraphicsExpose event
3364 handler that schedules a full repaint whenever that happens. Not pretty, but
3365 unless I can find a way to handle those events synchronously (as they are
3366 caused by the scroll operation), it's the best I can do.
3367
3368 2005-01-17: release 1.1.1
3369
3370 * Free42 Conduit: fixed a bug that would cause it to write past the end of a
3371 memory block, causing it to crash (and take down HotSync Manager with it).
3372 * PalmOS version: Fixed a bug in the file selection dialog, that would cause
3373 the file list to be initially empty under certain circumstances.
3374 * The auto-repeat feature on the ▲ and ▼ keys would leave the 'repeating' mode
3375 flag set, even after the key was released. This would cause the next key
3376 pressed to act like ▲ or ▼, even if it was a different key -- provided it was
3377 held down long enough for the auto-repeat timeout to expire.
3378 * SOLVE: in the situation where f(x1) and f(x2) have the same sign but
3379 different values, x3 is computed by the secant method; if f(x3) is worse than
3380 f(x1) and f(x2), the interval is bisected -- but this code had a bug: if
3381 f((x1+x2)/2) was *also* worse than f(x1) and f(x2), it would repeat the
3382 bisection step without changing x1 and x2 first, and so the algorithm could
3383 get stuck. I fixed this by *always* assigning x3 to the worse of x1 and x2
3384 after bisection, thus making sure that there is always change (if not
3385 necessarily progress, but that's another story).
3386
3387 2005-01-15: release 1.1
3388
3389 * Implemented program import and export, both in original HP-42S format (which
3390 is also the format used by Emu42), and in Free42's own internal format.
3391 * PalmOS version: Implemented a simple filesystem (using a PalmOS database
3392 underneath) which makes it possible to support program import and export, and
3393 printing to text and GIF files, on PalmOS devices that lack VFS support.
3394 A HotSync Conduit is provided to mirror this filesystem on a PC (Windows
3395 only, for now; maybe I'll do a Java version later).
3396 * Added an option to display the byte count on line 00 assuming HP-42S format.
3397 Note: program lines containing numbers are stored in binary in Free42; this
3398 means that 1e3 and 1000 end up being the same -- unlike on the HP-42S, where
3399 those lines are different, and have different numbers of bytes.
3400 When computing the HP-42S byte count, Free42 always assumes the most compact
3401 form of a number -- but this means that if you import a program containing
3402 numbers that are *not* maximally compact, the byte count given by Free42
3403 will be lower than that on the HP-42S.
3404 * Changed many of the special character substitutions that are made when
3405 sending printer output to text files or PalmOS memos, hopefully making them
3406 more readable; also added an option to suppress those substitutions
3407 altogether ("Raw text" in the Preferences dialog).
3408 * PalmOS version: Can now activate the menu bar by tapping in the top part of
3409 the screen.
3410 * The BCD conversion table (37 kilobytes) is no longer stored in the state
3411 file. The Windows and Motif versions now rebuild it each time they start up
3412 (PCs are fast enough to do this) and the PalmOS version now stores it in a
3413 database. Windows and Motif users will probably not notice any difference
3414 (apart from a smaller state file); PalmOS users may notice that they now have
3415 more application heap space to play with, startup and shutdown are faster,
3416 and HotSyncing the state file is faster.
3417 * PalmOS version: Added a sound volume control to the Preferences dialog.
3418 * PalmOS version: Fixed a bug that would cause the state file to become
3419 corrupted when writing large matrices (real matrices with >= 4096 elements,
3420 complex matrices with >= 2048 elements).
3421 * Windows version: When the print-out window is partially obscured, no longer
3422 scrolls the obscuring window into the print-out.
3423
3424 2004-12-20: release 1.0.17
3425
3426 * NORM and TRACE print modes: numbers entered by the user are now printed as
3427 entered, not formatted according to the active display mode -- except for one
3428 detail: if the display mode is FIX n, and the entered number does not contain
3429 an exponent, and the fractional part has fewer than n digits, it is padded
3430 with zeroes to n digits, so that decimal points will line up. (I got this
3431 from the HP-97 manual; here's hoping that the HP-42S/HP-82240A are similar.)
3432 * All O(n^3) matrix functions (INVRT, DET, SIMQ (MATX), matrix-matrix division,
3433 and matrix-matrix multiplication) are now interruptible (by EXIT).
3434 * LIST, PRP, PRUSR, and PRV are now interruptible (by EXIT and R/S).
3435 * Changed the Makefile for the Motif version slightly, so that the mask bitmap
3436 that it generates is called Mask1.pbm (and Mask1.xbm); this way the name does
3437 not clash with the unscaled mask.pbm on case-insensitive filesystems.
3438 * Windows version: The print-out window scrolling code now actually scrolls the
3439 window, instead of invalidating and repainting everything all the time. This
3440 makes programs that print a lot of output run faster.
3441 (If LIST, PRP, PRUSR, and PRV seem *slower* than in the previous release,
3442 that's because they're interruptible now: after each line, Free42 returns to
3443 the message loop, and during an interruptible print operation, each time
3444 there will be a WM_PAINT message to paint the most recent line -- so each
3445 line is actually painted on the screen *as it is generated*; the previous
3446 release didn't render anything on the screen until the whole printout was
3447 finished, and that was obviously faster, but not very pretty.)
3448
3449 2004-12-17: release 1.0.16
3450
3451 * NORM and TRACE print modes implemented, including the different formats used
3452 by PRP and LIST (right-justified and compact, respectively).
3453 I'm sure many differences remain between Free42 printer emulation and the
3454 real HP-42S + HP-82240A, but hopefully this NORM and TRACE implementation is
3455 close enough to be useful.
3456 (If you spot a discrepancy between Free42 and the original, please feel free
3457 to report it to the author so he can fix it. It will be appreciated!)
3458 * Motif version: The print-out window scroll bar now has its increment (i.e.,
3459 the amount by which it scrolls when the arrows are clicked) set to 18 pixels.
3460 This corresponds to one text-mode output line. (The Windows version already
3461 behaved like this; the PalmOS version will, too, as soon as I figure out how
3462 to control this aspect of scroll bar behavior on that platform.)
3463 * PRP now prints a highlight ("goose" character) in front of LBLs.
3464 * PRP now allows the argument to be an END from the PGM catalog when in program
3465 mode (it already did the right thing when in normal mode).
3466 * Flag 21 now controls PRA, PRLCD, PRX, PRΣ, PRSTK, PRUSR, and PRV during
3467 program execution. It is still ignored when these commands are executed
3468 interactively, and it still affects VIEW, AVIEW, ADV, and PROMPT regardless
3469 of whether a program is running or not (note that PROMPT prints only in NORM
3470 and TRACE modes).
3471 * GTO . now allows the argument to be an END from the PGM catalog.
3472 * Power cycles (exit/restart, and also power off/on on PalmOS) now cause
3473 program execution to stop if flag 11 is clear.
3474 * CROSS with two matrix arguments did not drop the stack; it placed the result
3475 in X but left Y intact. Fixed.
3476 * SST and BST now work properly even if invoked in unusual ways (XEQ, ASSIGN,
3477 the FCN catalog).
3478
3479 2004-12-14: release 1.0.15
3480
3481 * FIX and ALL mode now round to at most 12 digits before deciding how to
3482 display. This fixes two bugs: (1) in ALL mode, 0.00009999999999999999 is now
3483 displayed as 0.0001 instead of 1.e-4, because it now understands that the
3484 former does not hide any information; (2) in FIX 01 mode, 123456123456.9 is
3485 now displayed as 123456123457 instead of 123456123456.
3486 * PRA now prints an empty line if the alpha register is empty; the previous
3487 release printed nothing in this case.
3488 * PRΣ could print numbers instead of strings and vice versa (it checked the
3489 wrong location of the REGS matrix' is_string array). Fixed.
3490 * Windows version: Takes display resolution ("Small/Large Fonts" desktop
3491 setting) into account when calculating scroll bar width, instead of assuming
3492 96 dpi.
3493 * Motif version: Now remembers window positions between sessions.
3494
3495 2004-12-13: release 1.0.14
3496
3497 * Windows version: When using saved window geometry information, don't trust
3498 the saved width and height for the main window, and don't trust the saved
3499 width of the print-out window: the decor dimensions and menu bar height may
3500 have changed, and since we don't allow the user to resize the window in those
3501 directions, the result is a bit embarrassing. Also, instead of assuming that
3502 scroll bars are 16 pixels wide, get the value from the desktop settings in
3503 the registry.
3504 * PalmOS version: Limit size of generated memos to 4096 bytes; the previous
3505 release had a 32767 byte limit, which turns out to cause problems with old
3506 versions of Memo Pad and with PACE, and to make things worse, the check for
3507 that limit wasn't even implemented properly (I used a 16-bit signed int.
3508 Oops.).
3509 * IP hack: in addition to IP, FP, and AIP, this now applies to all functions
3510 that treat arguments as integers by truncating them: AROT, DIM, NEWMAT, POSA,
3511 R<>R, STOIJ, XTOA; BASE functions (AND, BASE+, BASE-, BASE*, BASE/, BASE+/-,
3512 BIT?, NOT, OR, ROTXY, XOR); and indirect addressing when the target is a
3513 numbered register.
3514 AGRAPH and PIXEL are not affected: they don't truncate their arguments, but
3515 round them to the nearest integer.
3516 * Indirect address resolution: IND nn, where Rnn contains a string, did not
3517 work. Oops! Fixed now.
3518
3519 2004-12-10: release 1.0.13
3520
3521 * Printer emulation -- on-screen, and also prints to plain text and GIF files,
3522 and on PalmOS, also prints to memos. Still needs to be verified against some
3523 more actual HP-82240 output; also, NORM and TRACE modes not implemented yet.
3524 * The user can now control whether or not singular matrices during matrix
3525 division/inversion, and range errors during matrix multiplication/division/
3526 inversion, generate error messages or not.
3527 * Added "IP hack" option; this causes IP, FP, and AIP to use the value in X
3528 rounded to 8 decimal digits. This enables some programs that rely on BCD
3529 behavior to work correctly on Free42. (For example, code that stores two
3530 2-digit numbers in one number as AA.BB: to extract AA, it does IP, and to
3531 extract BB it does FP 100 x IP. In binary math, this is not reliable, since
3532 the representation of the BB part of AA.BB is not exact; by rounding off a
3533 few digits internally before doing IP/FP/AIP, the binary round-off error can
3534 be compensated for in many cases.)
3535 * PalmOS version: Set "backup" flag on Free42State file, so that it is backed
3536 up during HotSync operations.
3537 * PalmOS version: Fixed annoying bug that caused a beep after executing any
3538 menu command (the pull-down menus, not the emulated HP-42S menus!).
3539 * Windows version: Now remembers window positions between sessions.
3540 * Fixed menu behavior of MVAR, SOLVE, and INTEG in the case where no real
3541 variables exist.
3542 * Fixed PRA in the case where it should print multiple lines (because of LF
3543 characters or because it doesn't fit on a line). Also affects AVIEW.
3544 * DOT didn't accept the case where X and Y are complex scalars. Fixed.
3545
3546 2004-11-23: release 1.0.12
3547
3548 * Windows version: Added better definitions of asinh(), acosh(), atanh(),
3549 log1p(), and expm1(), all taken from the GNU C library, version 2.2.5.
3550
3551 2004-11-20: release 1.0.11
3552
3553 * Printer support skeleton. Doesn't actually print yet, except for the Motif
3554 version which can send plain text to standard output -- but now all printer-
3555 related functions at least behave like they would on a real HP-42S with no
3556 printer. This means: no more "Not Yet Implemented" error messages; PRP, LIST,
3557 and PRV accept the appropriate argument types, and VIEW/AVIEW stop program
3558 execution if flag 21 is set while flag 55 is clear.
3559
3560 2004-11-18: release 1.0.10
3561
3562 * Error handling while SOLVE and/or INTEG are active: INTEG no longer affects
3563 error handling (previously INTEG was treated like SOLVE, but that was wrong);
3564 SOLVE now traps Stat Math Error (in addition to Out of Range, Divide by 0,
3565 and Invalid Data, which were already being trapped), and the same set of
3566 errors is now trapped while RUNning as while SSTing (previously *all* errors
3567 were trapped while RUNning, but that was wrong).
3568
3569 2004-11-18: release 1.0.9
3570
3571 * When performing a hard reset, initialize the random number generator using
3572 shell_random_seed() instead of setting it to 0.
3573 * While in command entry mode, entering a numeric argument, and the argument
3574 length is still 0 (e.g. just press STO or XEQ), shift-ENTER should activate
3575 alpha argument entry (like ENTER without shift) and not beep. Fixed.
3576 * When used in INDEX mode, INSR would store X at IJ before inserting the new
3577 row, and replace X with the new contents of IJ after having inserted the new
3578 row (always 0). In other words, it behaved like you would expect in EDIT or
3579 EDITN mode. DELR had a similar bug although it was less noticeable (it would
3580 leave the wrong value in X but at least it did not store an incorrect value
3581 in the matrix). Both fixed.
3582 * Fixed a couple of bugs that would cause INSR and DELR to update a matrix
3583 incorrectly if its data was shared.
3584
3585 2004-11-13: release 1.0.8
3586
3587 * CLALL would crash if invoked using XEQ or ASSIGN while spelling out the name
3588 (selecting it from the FCN catalog did work).
3589 * Variable catalogs would show the ▼▲ (multi-row menu) annunciator, even if
3590 they contained just one row of items.
3591
3592 2004-11-10: release 1.0.7
3593
3594 * Changed the LU decomposition code so that it will keep going when it finds
3595 a zero pivot, or even a whole zero column. Also added range checking to the
3596 back-substitution code; it replaces infinities and NaNs with
3597 (POS|NEG)_HUGE_DOUBLE. (NaNs should never be caused by divisions by 0, since
3598 I think I'm checking for that wherever it could occur, but they can also
3599 result from adding two infinities of opposite sign.) There is no check for
3600 flag 24, because the 42S ignores it in this situation, too; I also removed
3601 the flag-24 checks from matrix-matrix multiplication for compatibility.
3602 * AVIEW, when displaying one line, now clears flag 51, instead of leaving it
3603 unchanged.
3604 * A couple of "goose" fixes: clear row 0 before painting the goose after a PSE,
3605 and restart the goose at its last position when re-enabling it after a PSE or
3606 CLD.
3607 * After selecting a program in the INTEG application and entering the variable
3608 menu, pressing a menu key immediately no longer performs a STO operation, but
3609 instead selects the corresponding variable as the integration variable (and
3610 moves on to the integration parameter menu (LLIM/ULIM/ACC/INTEG)).
3611 Previously, you needed two keystrokes to achieve the same effect, which was
3612 consistent with the other variable menus (VARMENU and SOLVER), but not with
3613 the real HP-42S.
3614
3615 2004-11-09: release 1.0.6
3616
3617 * Matrix-matrix division computed Y * inv(X); the HP-42S does inv(X) * Y.
3618 Most embarrassing Free42 bug to date! And it also means that I never
3619 needed the _trn_ versions of the LU decomposition and back-substitution
3620 functions to begin with -- so they're gone again now.
3621 * With the INTEG Parameter menu (LLIM/ULIM/ACC/INTEG) active, STO and RCL,
3622 followed by one of the right 3 menu keys, caused a beep (good), but also
3623 caused the commands to be completed, with a bogus argument (bad).
3624
3625 2004-11-08: release 1.0.5
3626
3627 * Yet another AVIEW bug: the new line breaking logic introduced in release
3628 1.0.1 still does not handle LF in position 23 properly. If an LF occurs when
3629 the current line is full (i.e., at position 23, but that can change when I
3630 start supporting bigger display sizes), the result should be just one line
3631 break, not two.
3632 * [MIN] and [MAX] should search column J from row I on down. My original
3633 implementation searched the entire column. Fixed.
3634
3635 2004-11-08: release 1.0.4
3636
3637 * SOLVE performance improvement: for the case when f(x1) and f(x2) have
3638 opposite signs, compute the next guess using Ridders' method instead of the
3639 secant method. (The secant method is still used if f(x1) and f(x2) have the
3640 same sign.) For well-behaved functions, this improves performance to about as
3641 good as the HP-42S.
3642 * SOLVE now displays the two most recent guesses, and the signs of their
3643 results (or a question mark if an error was trapped while evaluating the
3644 function). This display is updated at most 4 times per second -- display
3645 operations are MUCH more expensive in the emulator than in the original, so
3646 you have to be careful not to throw away most of your CPU cycles on animating
3647 a progress indicator (especially if said progress indicator is likely to turn
3648 into an unreadable blur on faster machines). (This is similar to the "goose"
3649 situation.)
3650 * SOLVE bug fixes: now returns not just the root in X, but also: the previous
3651 guess in Y, f(x) in Z, and the result code (0=root, 1=sign reversal,
3652 2=extremum, 3=bad guesses, 4=constant) in T. Finally, "Bad Guess(es)" is not
3653 an error, just a message.
3654 * INTEG performance improvement: switched from using Simpson's Rule to the
3655 Romberg method. Still not quite as good as the HP-42S, but getting pretty
3656 close. It converges much faster than Simpson's Rule and seems quite stable.
3657 * INTEG bug fix: now returns not just the integral in X, but also the error
3658 estimate in Y.
3659 * Thank You to Hugh Steers for the Romberg implementation, and for reminding
3660 of the Numerical Recipes book, where I got the Ridders code.
3661
3662 2004-11-06: release 1.0.3
3663
3664 * CLALL caused memory corruption because clear_all_prgms() didn't clean up the
3665 'prgms' and 'labels' arrays properly. How on Earth did this manage to not
3666 crash when I tested it three weeks ago?!?
3667 * When the calculator is switched off in the middle of command entry, with
3668 flag 11 set, command entry should be cancelled on the next power-up.
3669 * While entering a LBL command, if the argument length is still 0, and one of
3670 the alpha submenus is active, interpret the number keys as alphanumeric
3671 rather than numeric. This allows labels like LBL "123" to be created easily.
3672
3673 2004-11-06: release 1.0.2
3674
3675 * In number entry mode, the MODES menu does not come up (the code does not
3676 recognize the difference between +/- and SHIFT +/- in this case). Fixed.
3677
3678 2004-11-06: release 1.0.1
3679
3680 * Reduce arguments to SIN, COS, TAN, →REC, and COMPLEX (in POLAR mode) by
3681 applying fmod(x, 360) (in DEG mode) or fmod(x, 400) (in GRAD mode).
3682 In RAD mode, the behavior is unchanged. See angle_to_rad().
3683 * Fixed a bug in keydown_command_entry() that made it impossible to create
3684 alpha LBLs where the first character was a shifted alpha menu key (e.g.
3685 LBL a, LBL "foo").
3686 * Fixed bugs in keydown_normal_mode() that caused program instructions
3687 generated by several menus to be inserted before the current line, instead of
3688 after. The affected menus were CATALOG (except FCN), VARMENU (including
3689 variable menus displayed by the SOLVE and INTEG applications), INTEG
3690 parameter (LLIM/ULIM/ACC/INTEG), and CUSTOM (LCLBL mode only).
3691 * Fixed the behavior of the XEQ (and GTO) key when the CUSTOM menu is active in
3692 LCLBL mode while in program entry mode. It now starts the command by calling
3693 do_interactive() instead of start_incomplete_command(), and the former takes
3694 care of the additional bookkeeping necessary in program mode, which fixes
3695 problems that would occur on line 00, or when cancelling the command
3696 (returning to the wrong line).
3697 * Flags 47 (variable menu), 53 (input), 65 (matrix editor), and 75
3698 (programmable menu) did not work, because they were missing from the
3699 virtual_flags list in core_commands2.c. Fixed.
3700 * A linefeed character at position 23 in the alpha register would be displayed
3701 as 'LF' by AVIEW. The check for LF should not be skipped immediately after a
3702 line wrap. Fixed, and also made the code a bit more general (not so tied to
3703 exactly two display lines).
3704 * The BINM, OCTM, DECM, and HEXM commands, when executed from a program, should
3705 activate the BASE application, and they didn't. Fixed, and also fixed a menu
3706 highlighting bug which I noticed while stepping through the test case for the
3707 BASE bug (highlights would disappear while SST was held down).
3708 * When entering number entry mode while in normal mode AND a menu is active,
3709 redraw the display to force the menu to be repainted; it could be invisible
3710 due to a recent two-line AVIEW.
3711 * Added [MIN], [MAX], and [FIND] functions. See README for more information
3712 about these.
3713 * PalmOS version: Reduced the beep volume from full volume to half. It really
3714 was a bit loud on some devices. (Of course now other people will complain
3715 that it's too quiet! There should be a sound volume control, but that will
3716 have to wait until release 1.1.)
3717
3718 2004-11-04: release 1.0