Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8522 → Rev 8523

/contrib/other/8086tiny/console.c
File deleted
/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);
/contrib/other/8086tiny/Tupfile.lua
5,8 → 5,8
HELPERDIR = "../../../programs"
end
tup.include(HELPERDIR .. "/use_gcc.lua")
tup.include(HELPERDIR .. "/use_menuetlibc.lua")
tup.include(HELPERDIR .. "/use_sdl.lua")
tup.include(HELPERDIR .. "/use_newlib.lua")
tup.include(HELPERDIR .. "/use_sdl_newlib.lua")
CFLAGS = CFLAGS_OPTIMIZE_SPEED .. " -std=c99 -U_WIN32 -fwhole-program"
compile_gcc{"8086tiny.c"}
link_gcc("8086tiny")