Although the 34s allows the user to obtain the current state of many mode settings (e.g. "RM?" or "REGS?") it does not seem to provide a direct way to get the current display setting, i.e. ALL, FIX, SCI or ENG and the number of digits. However, this information can be decoded from the value returned by STOM (which BTW recalls rather than STOres the current Mode setting).
Now I wonder what might be the best way to retrieve and decode certain bits from the 64-bit-block returned by STOM. For instance bits 22 and 23 that reflect the display setting, or bits 24..27 that contain the number of digits (c.f. WP34s manual, Appenix H).
Let's assume STOM X has returned a somewhat odd-looking value in X. What's the next step now to extract certain bits?
Dieter