diff --git a/src/Makefile b/src/Makefile index 517d29d..40c6c9a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,8 +3,8 @@ CSTND := --std=c11 CFLAGS := -o SRC := tyvm.c -#OUT = tyvm-unix -OUT := tyvm-win +OUT = tyvm-unix +#OUT := tyvm-win .PHONY: all clean all: tyvm diff --git a/src/includes.h b/src/includes.h index d9b2a43..2157a35 100644 --- a/src/includes.h +++ b/src/includes.h @@ -1,13 +1,5 @@ -/* - TYVM is a virtual machine based on LC-3 architecture for educational purposes. - Copyright (c) 2022 Erick Ahmed - Open-source software distributed under MIT license -*/ - /* List of all the libraries needed to run tyvm.c */ -//#define __UNIX // uncomment ONLY if compiling for unix-based operative system - /* universal libraries */ #include #include diff --git a/src/registers.h b/src/registers.h index fa8aaa8..be4dde5 100644 --- a/src/registers.h +++ b/src/registers.h @@ -1,8 +1,4 @@ -/* - TYVM is a virtual machine based on LC-3 architecture for educational purposes. - Copyright (c) 2022 Erick Ahmed - Open-source software distributed under MIT license -*/ +/* initialization of registers and memory /* memory mapped register tables */ enum mmr { diff --git a/src/tyvm.c b/src/tyvm.c index 7ab65ff..c8f1202 100644 --- a/src/tyvm.c +++ b/src/tyvm.c @@ -4,6 +4,8 @@ Open-source software distributed under MIT license */ +#define __UNIX + #include "includes.h" #include "registers.h" @@ -370,4 +372,4 @@ int main(int argc, const char* argv[]) { } } restore_input_buffering(); //restore terminal settings when shutdown -} +} \ No newline at end of file