minor changes
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -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 <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
+1
-5
@@ -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 {
|
||||
|
||||
+3
-1
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user