mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-01-17 00:30:08 +00:00
rename symbol
This commit is contained in:
parent
c64d985364
commit
8023097c73
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"); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user