Two questions

Post here to share useful tips and tricks, to ask questions about using your DM42 or to report software-related problems
Post Reply
Krauts In Space
Posts: 85
Joined: Wed Jan 03, 2018 2:48 pm
Location: Nuremberg, Germany

Two questions

Post by Krauts In Space » Tue Apr 24, 2018 9:52 am

1st)
I want a controlled end of my program by polling EXIT key via GETK and jump to a label for clearing stack, flags, etc. How to get this? GETK delivers keycode 33 but also quits execution. I could press R/S, but ...

2nd)
I can switch to graphics mode 200*120 / 400*240 but can't switch back to alphanumeric / stack display. How to get this? I think addressing a virtual variable might do this but I can't find out how.
DM15L S/# 10584 FW v25
DM42 S/# 01015 FW v3.5

grsbanks
Posts: 712
Joined: Tue Apr 25, 2017 9:23 am
Location: Preston, Lancs, UK

Re: Two questions

Post by grsbanks » Tue Apr 24, 2018 10:28 am

Krauts In Space wrote:
Tue Apr 24, 2018 9:52 am
1st)
I want a controlled end of my program by polling EXIT key via GETK and jump to a label for clearing stack, flags, etc. How to get this? GETK delivers keycode 33 but also quits execution. I could press R/S, but ...
KEY 9 GTO xx achieves this if you want to organise your program into a menu-driven structure.
Krauts In Space wrote:
Tue Apr 24, 2018 9:52 am
2nd)
I can switch to graphics mode 200*120 / 400*240 but can't switch back to alphanumeric / stack display. How to get this? I think addressing a virtual variable might do this but I can't find out how.
Not sure but I think EXITALL should achieve this. Give it a go. I don't have my DM42 to hand right now.
Not SwissMicros staff, just an enthusiast.

Krauts In Space
Posts: 85
Joined: Wed Jan 03, 2018 2:48 pm
Location: Nuremberg, Germany

Re: Two questions

Post by Krauts In Space » Tue Apr 24, 2018 11:27 am

grsbanks wrote:
Tue Apr 24, 2018 10:28 am
Krauts In Space wrote:
Tue Apr 24, 2018 9:52 am
1st)
I want a controlled end of my program by polling EXIT key via GETK and jump to a label for clearing stack, flags, etc. How to get this? GETK delivers keycode 33 but also quits execution. I could press R/S, but ...
KEY 9 GTO xx achieves this if you want to organise your program into a menu-driven structure.
As I'm using the whole keyboard for my program, no menus, this doesn't help me.
DM15L S/# 10584 FW v25
DM42 S/# 01015 FW v3.5

Thomas Okken
Posts: 491
Joined: Tue May 02, 2017 3:48 pm
Location: New Jersey, USA
Contact:

Re: Two questions

Post by Thomas Okken » Tue Apr 24, 2018 12:10 pm

Krauts In Space wrote:
Tue Apr 24, 2018 11:27 am
grsbanks wrote:
Tue Apr 24, 2018 10:28 am
KEY 9 GTO xx achieves this if you want to organise your program into a menu-driven structure.
As I'm using the whole keyboard for my program, no menus, this doesn't help me.
Then there is no help for you, I'm afraid. KEY GTO and KEY XEQ are the only ways to redefine EXIT, and pressing EXIT during GETKEY halts program execution, as you noticed. That's it, there are no other options.

Krauts In Space
Posts: 85
Joined: Wed Jan 03, 2018 2:48 pm
Location: Nuremberg, Germany

Re: Two questions

Post by Krauts In Space » Tue Apr 24, 2018 12:19 pm

Thomas Okken wrote:
Tue Apr 24, 2018 12:10 pm
Krauts In Space wrote:
Tue Apr 24, 2018 11:27 am
grsbanks wrote:
Tue Apr 24, 2018 10:28 am
KEY 9 GTO xx achieves this if you want to organise your program into a menu-driven structure.
As I'm using the whole keyboard for my program, no menus, this doesn't help me.
Then there is no help for you, I'm afraid. KEY GTO and KEY XEQ are the only ways to redefine EXIT, and pressing EXIT during GETKEY halts program execution, as you noticed. That's it, there are no other options.
Hmmm ... to bad! :/
Nevertheless thanks for you answers.

For my other problem, leaving graphic mode, I also found no solution.
If there's not clean way to leave it, maybe a future extension to GrMod, storing -1 for instance to come back to stack view, would be nice.
DM15L S/# 10584 FW v25
DM42 S/# 01015 FW v3.5

User avatar
PierreMengisen
Posts: 7
Joined: Wed Nov 29, 2017 12:38 pm
Location: Neuchâtel CH

Re: Two questions

Post by PierreMengisen » Tue Apr 24, 2018 6:57 pm

for the second question, try
" "
AVIEW
Pierre
[TI59; HP41CV; HP15C; HP28S; DM41; DM41L; DM42]

Krauts In Space
Posts: 85
Joined: Wed Jan 03, 2018 2:48 pm
Location: Nuremberg, Germany

Re: Two questions

Post by Krauts In Space » Wed Apr 25, 2018 5:42 am

PierreMengisen wrote:
Tue Apr 24, 2018 6:57 pm
for the second question, try
" "
AVIEW
Hello Pierre,
thankyou for your advice but this also didn't work.

Gernot
DM15L S/# 10584 FW v25
DM42 S/# 01015 FW v3.5

keithdalby
Posts: 498
Joined: Mon Apr 24, 2017 6:38 pm

Re: Two questions

Post by keithdalby » Wed Apr 25, 2018 5:50 am


Post Reply