Two questions
-
- Posts: 85
- Joined: Wed Jan 03, 2018 2:48 pm
- Location: Nuremberg, Germany
Two questions
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.
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
DM42 S/# 01015 FW v3.5
Re: Two questions
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 am1st)
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 ...
Not sure but I think EXITALL should achieve this. Give it a go. I don't have my DM42 to hand right now.Krauts In Space wrote: ↑Tue Apr 24, 2018 9:52 am2nd)
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 SwissMicros staff, just an enthusiast.
-
- Posts: 85
- Joined: Wed Jan 03, 2018 2:48 pm
- Location: Nuremberg, Germany
Re: Two questions
As I'm using the whole keyboard for my program, no menus, this doesn't help me.grsbanks wrote: ↑Tue Apr 24, 2018 10:28 amKEY 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 am1st)
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 ...
DM15L S/# 10584 FW v25
DM42 S/# 01015 FW v3.5
DM42 S/# 01015 FW v3.5
-
- Posts: 507
- Joined: Tue May 02, 2017 3:48 pm
- Location: New Jersey, USA
- Contact:
Re: Two questions
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 wrote: ↑Tue Apr 24, 2018 11:27 amAs I'm using the whole keyboard for my program, no menus, this doesn't help me.
-
- Posts: 85
- Joined: Wed Jan 03, 2018 2:48 pm
- Location: Nuremberg, Germany
Re: Two questions
Hmmm ... to bad! :/Thomas Okken wrote: ↑Tue Apr 24, 2018 12:10 pmThen 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 wrote: ↑Tue Apr 24, 2018 11:27 amAs I'm using the whole keyboard for my program, no menus, this doesn't help me.
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
DM42 S/# 01015 FW v3.5
- PierreMengisen
- Posts: 10
- Joined: Wed Nov 29, 2017 12:38 pm
- Location: Neuchâtel CH
Re: Two questions
for the second question, try
" "
AVIEW
" "
AVIEW
Pierre
[TI59; HP41CV; HP15C; HP28S; DM41; DM41L; DM42]
[TI59; HP41CV; HP15C; HP28S; DM41; DM41L; DM42]
-
- Posts: 85
- Joined: Wed Jan 03, 2018 2:48 pm
- Location: Nuremberg, Germany
Re: Two questions
Hello Pierre,
thankyou for your advice but this also didn't work.
Gernot
DM15L S/# 10584 FW v25
DM42 S/# 01015 FW v3.5
DM42 S/# 01015 FW v3.5
-
- Posts: 507
- Joined: Mon Apr 24, 2017 6:38 pm
Re: Two questions
Related to viewtopic.php?f=17&t=1863&p=8017#p7925 ?