Archived
1
0

minor changes

This commit is contained in:
Erick
2022-02-06 00:49:55 +01:00
parent 731c7aaccd
commit b438c7a97f
4 changed files with 6 additions and 16 deletions
+2 -2
View File
@@ -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
-8
View File
@@ -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
View File
@@ -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
View File
@@ -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
}
}