mirror of
https://github.com/ArthurFerreira2/reinette-II.git
synced 2024-09-27 07:54:27 +00:00
Update reinette-II.c
This commit is contained in:
parent
ba2940ef11
commit
c835dac465
@ -24,7 +24,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
#include <unistd.h> // for usleep()
|
|
||||||
|
|
||||||
#define ROMSTART 0xD000
|
#define ROMSTART 0xD000
|
||||||
#define ROMSIZE 0x3000 // 12KB
|
#define ROMSIZE 0x3000 // 12KB
|
||||||
@ -552,8 +551,8 @@ int main(int argc, char *argv[]) {
|
|||||||
instruction[opcode](); // EXECUTE the instruction
|
instruction[opcode](); // EXECUTE the instruction
|
||||||
}
|
}
|
||||||
|
|
||||||
// slow down emulation - so you can hit thoses colored monsters
|
// slow down emulation
|
||||||
usleep(160);
|
napms(1);
|
||||||
|
|
||||||
// keyboard controller
|
// keyboard controller
|
||||||
if ((ch = getch()) != ERR){
|
if ((ch = getch()) != ERR){
|
||||||
@ -590,3 +589,4 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user