Mercurial > repos > blastem
view terminal_win.c @ 828:22c3c52b9871
Fixed a copy pasta error in the implementation of LDD and LDDR. HL should be decremented and not incremented in those instructions.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 18 Sep 2015 19:54:02 -0700 |
parents | 1af7d1cdcc66 |
children | 0433fdd9ba66 |
line wrap: on
line source
#include <windows.h> #include <stdio.h> void init_terminal() { static char init_done; if (!init_done) { AllocConsole(); freopen("CONIN$", "r", stdin); freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr); } }