Skip to content

Commit 0894a95

Browse files
author
ThroughTheVoid
committed
refactor file structure, update README
1 parent fa4498d commit 0894a95

File tree

6 files changed

+27
-14
lines changed

6 files changed

+27
-14
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
/build
2+
test.cpu
3+
test.cpu.asm
4+
cvm

Makefile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
VM_OBJECTS = vm/main.o vm/readfile.o
3+
VM_HEADERS = vm/readfile.h
4+
5+
all: cvm
6+
7+
run: cvm
8+
./cvm
9+
10+
%.o: %.c
11+
gcc -c $^ -o $@
12+
13+
cvm: $(VM_OBJECTS) $(VM_HEADERS)
14+
gcc $^ -o cvm

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ A virtual machine which emulates my WIP CPU
66

77
https://github.com/DavidHargat/LogisimCpu
88

9+
### clone/build/run
10+
11+
**NOTE: cvm does not accept input files yet**
12+
13+
`git clone https://github.com/DavidHargat/CVM`
14+
15+
`make`
16+
17+
`./cvm <filename>`
18+
919
## Instruction Set
1020

1121

vm/Makefile

-14
This file was deleted.

vm/main.o

6.2 KB
Binary file not shown.

vm/readfile.o

1.98 KB
Binary file not shown.

0 commit comments

Comments
 (0)