Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8522 → Rev 8523

/contrib/other/8086tiny/8086tiny.c
24,9 → 24,9
return 0;
}
 
 
/*
#include <memory.h>
 
*/
#ifndef _WIN32
#include <unistd.h>
#include <fcntl.h>
33,7 → 33,7
#endif
 
#ifndef NO_GRAPHICS
#include <SDL/SDL.h>
#include <SDL.h>
#endif
 
// Emulator system constants
276,15 → 276,15
}
#endif
 
#define printf con_printf
#define gets con_gets
#undef main
#include "console.c"
#include <sys/kos_LoadConsole.h>
#define kbhit con_kbhit
#define getch con_getch
 
// Emulator entry point
int main(int argc, char **argv)
{
CONSOLE_INIT("8086");
load_console();
con_set_title("8086tiny");
//freopen("OUT", "w" ,stdout);
#ifndef NO_GRAPHICS
695,7 → 695,7
{
OPCODE_CHAIN 0: // PUTCHAR_AL
write(1, regs8, 1);
printf("%c", regs8[0]);
// printf("%c", regs8[0]);
OPCODE 1: // GET_RTC
time(&clock_buf);
ftime(&ms_clock);