mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-08-15 06:27:30 +00:00
rename symbol
This commit is contained in:
2
apple1.h
2
apple1.h
@@ -53,7 +53,7 @@ void woz_mon() {
|
||||
}
|
||||
|
||||
// returns nonzero if a key has been pressed
|
||||
inline byte keypressed() {
|
||||
inline byte woz_iskeypressed() {
|
||||
#ifdef APPLE1
|
||||
return PEEK(KEY_CTRL) & 0x80;
|
||||
#else
|
||||
|
@@ -22,6 +22,7 @@ void demo_interrupt() {
|
||||
|
||||
for(;;) {
|
||||
if(keypressed()) {
|
||||
if(woz_iskeypressed()) {
|
||||
byte k = woz_getkey();
|
||||
if(k=='1') { tms_interrupt(1); woz_puts("INT ENABLED\r"); }
|
||||
else if(k=='0') { tms_interrupt(0); woz_puts("INT DISABLED\r"); }
|
||||
|
Reference in New Issue
Block a user