Re: [WP34s] Decoding STOM Message #3 Posted by Dieter on 21 Oct 2013, 3:23 p.m., in response to message #2 by Paul Dale
OK. However, in some cases there is no other way to obtain certain status information, for instance the display setting. Reminds me of the good old '41 and decoding its system flag settings. ;-) These flags were documented in the manual, just as the structure of the 34s 64-bit mode value returned by STOM. This may be left undocumented, but then all encoded information should be made available by dedicated commands. Most of it already is.
With the provided information I now managed to retrieve the display mode this way:
BASE 16 ' or BASE 02, or ...
0
SB 22
SB 23 ' setup a bit mask with the two display mode bits
STOM Y ' store mode in Y
AND ' clear all except the two display mode bits
SR 22 ' move the result to the two LSBs
DECM ' result is 0 for ALL, 1 for FIX, 2 for SCI, 3 for ENG
Dieter
|