[cc65] Problem with kbhit()?

Date view Thread view Subject view

From: Stephan Lesch (slesch_at_studcs.uni-sb.de)
Date: 2002-05-14 17:41:49


Hi,

has anyone tried to build and run the "Nachtmusik" from the samples dir
lately? It compiles all right, but when I run it, it exits as soon
as it enters the play loop (the play loop calls kbhit() and exits if a
key was pressed)

kbhit on the 64 relies on the keyboard buffer count (KEY_COUNT, $c6), and
apparently, this count is incremented somewhere even if no key is pressed.
This seems to happen permanently: if I do a cgetc() inside the play loop,
just before kbhit is called, the buffer will be empty, but if I just do 
it once before entering the play loop, the program still aborts.

I'm not sure if this is a fault, or if I'm just making a silly mistake...

Greetings,
Stephan
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-05-14 17:42:27 CEST