Flags status DM42
- PierreMengisen
- Posts: 306
- Joined: Wed Nov 29, 2017 1:38 pm
- Location: Neuchâtel CH
Flags status DM42
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
At the same time I attached a reference OFFIMAGE of the flags.
greetings
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]
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
-
- Posts: 795
- Joined: Wed May 03, 2017 7:46 pm
- Location: Malone, NY USA
Re: Flags status DM42
Sweet! It's great to be able so see all the flags at a glance. Thanks.PierreMengisen wrote: ↑Wed Jul 01, 2020 2:30 pmI 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
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)
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)
Re: Flags status DM42
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.
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
DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
- PierreMengisen
- Posts: 306
- Joined: Wed Nov 29, 2017 1:38 pm
- Location: Neuchâtel CH
Re: Flags status DM42
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.
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]
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
Re: Flags status DM42
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.
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.
-
- Posts: 1107
- Joined: Tue May 02, 2017 5:48 pm
- Location: Netherlands
- Contact:
Re: Flags status DM42
The DM42 (and Free42) uses a few flags that are unused on the real HP-42S:PierreMengisen wrote: ↑Wed Jul 01, 2020 2:30 pmAt the same time I attached a reference OFFIMAGE of the flags.
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.
- PierreMengisen
- Posts: 306
- Joined: Wed Nov 29, 2017 1:38 pm
- Location: Neuchâtel CH
Re: Flags status DM42
FLGS Flag status program.
New version with local labels.
To consume without moderation.
Pierre
New version with local labels.
To consume without moderation.
Pierre
- Attachments
-
- flgs.raw
- (964 Bytes) Downloaded 237 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]
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
- PierreMengisen
- Posts: 306
- Joined: Wed Nov 29, 2017 1:38 pm
- Location: Neuchâtel CH
Re: Flags status DM42
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.
Greetings to allThomas Okken wrote: ↑Thu Jul 02, 2020 5:12 amFlags 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.
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]
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
-
- Posts: 1107
- Joined: Tue May 02, 2017 5:48 pm
- Location: Netherlands
- Contact:
Re: Flags status DM42
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.PierreMengisen wrote: ↑Thu Jul 02, 2020 7:36 pmThomas, do you know why these explanations don't show up DM42HELP.HTM?
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.
- PierreMengisen
- Posts: 306
- Joined: Wed Nov 29, 2017 1:38 pm
- Location: Neuchâtel CH
Re: Flags status DM42
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]
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]