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
deetee
Posts: 15
Joined: Mon Jul 22, 2019 6:01 am
Location: Vienna

How to exit program from graphic to calculating mode

Post by deetee » Mon Aug 12, 2019 4:23 am

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: 211
Joined: Fri Jun 23, 2017 3:10 am

Re: How to exit program from graphic to calculating mode

Post by mcc » Tue Aug 13, 2019 2:43 am

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 v.:3.14. / 3.14. as compiled by SwissMicros

deetee
Posts: 15
Joined: Mon Jul 22, 2019 6:01 am
Location: Vienna

Re: How to exit program from graphic to calculating mode

Post by deetee » Tue Aug 13, 2019 5:49 am

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: 211
Joined: Fri Jun 23, 2017 3:10 am

Re: How to exit program from graphic to calculating mode

Post by mcc » Tue Aug 13, 2019 3:53 pm

Hi deetee,

happy to hear that it works for you! :)

Have a nice day! :)
Cheers!
mcc
DM 42 - SN: 00373, Firmware v.:3.14. / 3.14. as compiled by SwissMicros

Post Reply