minor changes
This commit is contained in:
+2
-2
@@ -3,8 +3,8 @@ CSTND := --std=c11
|
|||||||
CFLAGS := -o
|
CFLAGS := -o
|
||||||
SRC := tyvm.c
|
SRC := tyvm.c
|
||||||
|
|
||||||
#OUT = tyvm-unix
|
OUT = tyvm-unix
|
||||||
OUT := tyvm-win
|
#OUT := tyvm-win
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
all: tyvm
|
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 */
|
/* List of all the libraries needed to run tyvm.c */
|
||||||
|
|
||||||
//#define __UNIX // uncomment ONLY if compiling for unix-based operative system
|
|
||||||
|
|
||||||
/* universal libraries */
|
/* universal libraries */
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
+1
-5
@@ -1,8 +1,4 @@
|
|||||||
/*
|
/* initialization of registers and memory
|
||||||
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
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* memory mapped register tables */
|
/* memory mapped register tables */
|
||||||
enum mmr {
|
enum mmr {
|
||||||
|
|||||||
+3
-1
@@ -4,6 +4,8 @@
|
|||||||
Open-source software distributed under MIT license
|
Open-source software distributed under MIT license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define __UNIX
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
#include "registers.h"
|
#include "registers.h"
|
||||||
|
|
||||||
@@ -370,4 +372,4 @@ int main(int argc, const char* argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
restore_input_buffering(); //restore terminal settings when shutdown
|
restore_input_buffering(); //restore terminal settings when shutdown
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user