How to exit program from graphic to calculating mode

Post here to share useful tips and tricks, to ask questions about using your DM42 or to report software-related problems
Post Reply
User avatar
deetee
Posts: 54
Joined: Mon Jul 22, 2019 8:01 am
Location: Vienna

How to exit program from graphic to calculating mode

Post by deetee »

Is there a command to exit a program from graphic mode to calculator mode (without pressing the EXIT key)?

For example to exit this program (and show the stack) immediately after drawing the pixel:

Code: Select all

00 { 10-Byte Prgm }
01 CLLCD
02 10
03 10
04 PIXEL
05 ???
TIA and regards
deetee
mcc
Posts: 277
Joined: Fri Jun 23, 2017 5:10 am

Re: How to exit program from graphic to calculating mode

Post by mcc »

Hi deetee,

To achieve this, you may add a CLA in the beginning and a AVIEW at the end.
Basically any "do something with the stack-screen" will work.

BUT:
The DM42 has no "video ram" or that alike. You overwrite the graphic screen
with the stack screen. There is no separation between those.
If you want back the graphic screen you have to PIXEL its contents again.

HTH!
:)

Cheers!
mcc
DM 42 - SN: 00373, Firmware release v.:3.22. / DMCP 3.24. as compiled by SwissMicros
User avatar
deetee
Posts: 54
Joined: Mon Jul 22, 2019 8:01 am
Location: Vienna

Re: How to exit program from graphic to calculating mode

Post by deetee »

Hello mcc!

Thank you very much for your hint.

Finally I did it with AVIEW, CLLCD and STOP.

CLLCD was necessary to avoid the annoying view of the alpha register on top of the stack. So I can exit my "fastplot" program (in a regular way) directly to the stack.

Regards
deetee
mcc
Posts: 277
Joined: Fri Jun 23, 2017 5:10 am

Re: How to exit program from graphic to calculating mode

Post by mcc »

Hi deetee,

happy to hear that it works for you! :)

Have a nice day! :)
Cheers!
mcc
DM 42 - SN: 00373, Firmware release v.:3.22. / DMCP 3.24. as compiled by SwissMicros
Post Reply