Re: HPGCC keyboard input
- From: "Claudio Lapilli" <pleasedontspam@xxxxxxx>
- Date: 30 Aug 2006 17:48:11 -0700
dougjgray@xxxxxxxxx wrote:
I have c programs for my hp49g+ that I have a menu and the user selects
options by pressin keys ie: F1, F2, F3 etc, on version 1.1 of hp gcc I
used getkey 0 and that worked however on version 2 of gcc any keyb
command locks the machine up and I have to press reset to restart, Has
anybody found a way to get a keypress and return the key that doesnt
lock the machine up. All the keyb_ I tried as well as getkey dont work
Keyboard routines have not changed in a long time, they are very simple
and stable. Your problem must come from somewhere else in your code.
Typically stack corruption problems can cause this type of weird
behavior. Check all your local variables, especially arrays and make
sure you never write to locations you are not supposed to.
Also, check the following program:
#include <hpgcc49.h>
int main()
{
printf("Waiting for a key...");
keyb_getkey(1);
return 0;
}
If the program doesn't crash, the problem is somewhere else in your
code. If this program shows the message and crash, then you are right
and getkey is crashing (let us know). If it crashes without showing the
message, then you probably have an old version of the ARMToolbox, make
sure you get the latest one.
Claudio
.
- Follow-Ups:
- Re: HPGCC keyboard input
- From: dougjgray
- Re: HPGCC keyboard input
- References:
- HPGCC keyboard input
- From: dougjgray
- HPGCC keyboard input
- Prev by Date: Re: Global variables and HP-GCC
- Next by Date: Re: HPGCC and Hiworld
- Previous by thread: Re: HPGCC keyboard input
- Next by thread: Re: HPGCC keyboard input
- Index(es):
Relevant Pages
|