Flags status DM42

Contributions to this software library are always welcome. Please ensure that you post program listings rather than .raw files. They give a reasonable idea of what your program does without having to load them into a DM42 and you can also include comments in your code. Check out the following link for a decoder/encoder: https://technical.swissmicros.com/decoders/dm42/

You can then copy/paste the listing and post it in "code" tags.
User avatar
PierreMengisen
Posts: 305
Joined: Wed Nov 29, 2017 1:38 pm
Location: Neuchâtel CH

Flags status DM42

Post by PierreMengisen »

I wrote a little program to get the state of the 100 flags of my MD42. The white squares represent the active flags.
At the same time I attached a reference OFFIMAGE of the flags.
greetings
FlagsTable.raw
(851 Bytes) Downloaded 325 times
FlagsState.bmp
FlagsState.bmp (12.31 KiB) Viewed 5277 times
Flags dm42.bmp
Flags dm42.bmp (12.25 KiB) Viewed 5277 times
Pierre
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
toml_12953
Posts: 795
Joined: Wed May 03, 2017 7:46 pm
Location: Malone, NY USA

Re: Flags status DM42

Post by toml_12953 »

PierreMengisen wrote:
Wed Jul 01, 2020 2:30 pm
I wrote a little program to get the state of the 100 flags of my MD42. The white squares represent the active flags.
At the same time I attached a reference OFFIMAGE of the flags.
greetings
Sweet! It's great to be able so see all the flags at a glance. Thanks.
Tom L

Some people call me inept but I'm as ept as anybody!
DM10L SN: 059/100
DM41X SN: 00023 (Beta)
DM41X SN: 00506 (Shipping)
DM42 SN: 00025 (Beta)
DM42 SN: 00221 (Shipping)
WP43 SN: 00025 (Prototype)
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: Flags status DM42

Post by rprosperi »

Nice looking output! Thanks for sharing this.

What SIZE is needed to run?

Update: Seems to be 83.

Run time is near-instantaneous, even on batteries. Impressive. :)
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
User avatar
PierreMengisen
Posts: 305
Joined: Wed Nov 29, 2017 1:38 pm
Location: Neuchâtel CH

Re: Flags status DM42

Post by PierreMengisen »

Hello Bob.
I use the regs 81 and 82. But we can use 01 and 02 without further ado. I'm used to working with personal records 81 to 99.
Pierre
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
IonX
Posts: 11
Joined: Fri Jun 05, 2020 5:38 am

Re: Flags status DM42

Post by IonX »

Great program...thanks.

I used the menu and/or help buttons to see the Flags meaning. re: OFFIMAGE. Or you can re-arrange the Flag meaning into a suitable table format in the help file to see everything.
Thomas Okken
Posts: 1100
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Flags status DM42

Post by Thomas Okken »

PierreMengisen wrote:
Wed Jul 01, 2020 2:30 pm
At the same time I attached a reference OFFIMAGE of the flags.
The DM42 (and Free42) uses a few flags that are unused on the real HP-42S:

Flags 31 & 67: date format mode:
67 clear, 31 clear: MDY mode (default)
67 clear, 31 set: DMY mode
67 set: YMD mode

Flag 64: shift
This flag indicates whether or not Shift was active when the current keystroke occurred; it can be used to implement different behaviors for shifted and unshifted menu keys in programmable menu handlers (KEYX/KEYG).

Flag 78: BSIGNED mode
signed operation for BASE functions; default: set

Flag 79: BWRAP mode
wrapped operation for BASE functions; default: clear

Flags 36-80 are read-only so you can't use SF, CF, FS?C, or FC?C with them, but the date format and BASE modes can be controlled using the MDY/DMY/YMD functions and BSIGNED/BWRAP, respectively.

The BSIGNED and BWRAP functions are toggles, so in order to set those modes programmatically, you'll have to combine them with a flag test. For example, to turn on BWRAP mode, use FC? 79 BWRAP, and to turn it off, use FS? 79 BWRAP.
Last edited by Thomas Okken on Thu Jul 02, 2020 6:04 pm, edited 1 time in total.
User avatar
PierreMengisen
Posts: 305
Joined: Wed Nov 29, 2017 1:38 pm
Location: Neuchâtel CH

Re: Flags status DM42

Post by PierreMengisen »

FLGS Flag status program.
New version with local labels.
To consume without moderation.


Pierre
Attachments
flgs.raw
(964 Bytes) Downloaded 235 times
Pierre
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
User avatar
PierreMengisen
Posts: 305
Joined: Wed Nov 29, 2017 1:38 pm
Location: Neuchâtel CH

Re: Flags status DM42

Post by PierreMengisen »

Thomas, do you know why these explanations don't show up DM42HELP.HTM? They are very useful. In any case thank you for your explanations.
Thomas Okken wrote:
Thu Jul 02, 2020 5:12 am
Flags 31 & 67: date format mode:
67 clear, 31 clear: MDY mode (default)
67 clear, 31 set: DMY mode
67 set: YMD mode

Flag 64: shift
This flag indicates whether or not Shift was active when the current keystroke occurred; it can be used to implement different behaviors for shifted and unshifted menu keys in programmable menu handlers (KEYX/KEYG).

Flag 78: BSIGNED mode
signed operation for BASE functions; default: set

Flag 79: BWRAP mode
wrapped operation for BASE functions; default: clear

Flags 36-80 are read-only so you can't use SF, CF, FS?C, or FC?C with them, but the date format and BASE modes can be controlled using the MDY/DMY/YMD functions and BSIGNED/BWRAP, respectively.

The BSIGNED and BWRAP functions are toggles, so in order to set those modes programmatically, you'll have to combine them with a flag test. For example, to turn on BWRAP mode, use FC? 79 BWRAP, and to turn it off, use FS? 79 BWRAP.
Greetings to all
Pierre
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
Thomas Okken
Posts: 1100
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Flags status DM42

Post by Thomas Okken »

PierreMengisen wrote:
Thu Jul 02, 2020 7:36 pm
Thomas, do you know why these explanations don't show up DM42HELP.HTM?
The DM42HELP.HTM file is maintained by SwissMicros, not by me. I assume they just didn't think to update it to reflect these flag changes, most of which are fairly recent.

2017-03-11: release 1.5.14 -- flag 31
2019-04-07: release 2.2 -- flag 67
2019-05-11: release 2.2.1 -- flag 64
2019-07-01: release 2.4 -- flags 78 & 79

Or, well, recent relative to the age of Free42 overall, anyway. :D
User avatar
PierreMengisen
Posts: 305
Joined: Wed Nov 29, 2017 1:38 pm
Location: Neuchâtel CH

Re: Flags status DM42

Post by PierreMengisen »

Flags dm42.bmp
Flags dm42.bmp (12.25 KiB) Viewed 5017 times
New enhanced version of OFFIMG Help flash MD42
For your pleasure and thanks to Thomas.
Pierre
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
Post Reply