1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-10-07 04:40:55 +11:00
collapseos/emul/8086/forth.c
2020-10-24 20:41:51 -04:00

23 lines
332 B
C

#include <stdint.h>
#include <stdio.h>
#include "cpu.h"
extern uint8_t RAM[0x100000];
int main(int argc, char *argv[])
{
int i = 0;
int ch = 0;
reset86();
ch = getchar();
while (ch != EOF) {
RAM[i++] = ch;
ch = getchar();
}
printregs();
exec86(1);
printregs();
return 0;
}