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 3:48 pm
Location: Nuremberg, Germany

Two questions

Post by Krauts In Space »

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: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: Two questions

Post by grsbanks »

Krauts In Space wrote:
Tue Apr 24, 2018 11: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 11: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.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
Krauts In Space
Posts: 85
Joined: Wed Jan 03, 2018 3:48 pm
Location: Nuremberg, Germany

Re: Two questions

Post by Krauts In Space »

grsbanks wrote:
Tue Apr 24, 2018 12:28 pm
Krauts In Space wrote:
Tue Apr 24, 2018 11: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: 1100
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Two questions

Post by Thomas Okken »

Krauts In Space wrote:
Tue Apr 24, 2018 1:27 pm
grsbanks wrote:
Tue Apr 24, 2018 12:28 pm
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 3:48 pm
Location: Nuremberg, Germany

Re: Two questions

Post by Krauts In Space »

Thomas Okken wrote:
Tue Apr 24, 2018 2:10 pm
Krauts In Space wrote:
Tue Apr 24, 2018 1:27 pm
grsbanks wrote:
Tue Apr 24, 2018 12:28 pm
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: 305
Joined: Wed Nov 29, 2017 1:38 pm
Location: Neuchâtel CH

Re: Two questions

Post by PierreMengisen »

for the second question, try
" "
AVIEW
Pierre
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
Krauts In Space
Posts: 85
Joined: Wed Jan 03, 2018 3:48 pm
Location: Nuremberg, Germany

Re: Two questions

Post by Krauts In Space »

PierreMengisen wrote:
Tue Apr 24, 2018 8: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: 564
Joined: Mon Apr 24, 2017 8:38 pm

Re: Two questions

Post by keithdalby »

Post Reply