SamCoVT / TaliForth2

A Subroutine Threaded Code (STC) ANSI-like Forth for the 65c02
Other
29 stars 7 forks source link

Avoid C65 busy wait #142

Closed patricksurry closed 1 month ago

patricksurry commented 1 month ago

I noticed my CPU pegs at 100% and drains my battery if I leave a c65 session waiting keyboard input, because it just spins on _kbhit. Avoid that by adding a 1ms delay if there's no key ready.