Update reinette-II.c

This commit is contained in:
ArthurFerreira2 2019-04-02 09:52:57 +02:00 committed by GitHub
parent ba2940ef11
commit c835dac465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,6 @@
*/
#include <ncurses.h>
#include <unistd.h> // for usleep()
#define ROMSTART 0xD000
#define ROMSIZE 0x3000 // 12KB
@ -552,8 +551,8 @@ int main(int argc, char *argv[]) {
instruction[opcode](); // EXECUTE the instruction
}
// slow down emulation - so you can hit thoses colored monsters
usleep(160);
// slow down emulation
napms(1);
// keyboard controller
if ((ch = getch()) != ERR){
@ -590,3 +589,4 @@ int main(int argc, char *argv[]) {
}
}
}