Why doesn't busy waiting on the key array work? For example, "while (!key[KEY_ENTER]);" doesn't work.
Description
Why doesn't busy waiting on the key array work? For example, "while (!key[KEY_ENTER]);" doesn't work.
If the code works without optimisations, then it could be the
compiler's fault. You can try beating the compiler into submission,
for example:
while (!key[KEY_ENTER])
rest(0);
For this case, however, it would be better to use
readkey()
instead.
Or consider upgrading or downgrading your compiler.