Change the program name and rework spelling
This commit is contained in:
parent
f47a7c9597
commit
d67adbc8b1
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
*.o
|
*.o
|
||||||
/*.toy
|
/*.toy
|
||||||
/coredump*
|
/coredump*
|
||||||
toy_cpu
|
toy-CPU
|
||||||
|
@ -9,10 +9,10 @@ The project can be built by using `make`.
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Pass the RAM content to the machine via a text file.<br>
|
Transfer the RAM content to the machine via a text file.<br>
|
||||||
The program call is: `toy_cpu` SOURCE.toy<br>
|
The program call is: `toy_cpu` SOURCE.toy<br>
|
||||||
The following is the specification for a 16 BIT machine word. With it, you can create the RAM content.<br>
|
The following is the specification for a 16 BIT machine word. With it, you can create the RAM content.<br>
|
||||||
(Do not forget: this is a pure John von Neumann architecture, data and program in the same memory)<br>
|
(Do not forget: this is a pure John von Neumann architecture, data and program are in the same memory)<br>
|
||||||
|
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
@ -43,11 +43,11 @@ BIT |15 14 13 12|11 10 9 8 7 6 5 4 3 2 1 0|
|
|||||||
|
|
||||||
This machine has the following registers:
|
This machine has the following registers:
|
||||||
|
|
||||||
* 16 BIT Instruction Register (4 BIT OP, 12 BIT Adr)
|
* 16 BIT Instruction Register (4 BIT OP, 12 BIT Addr)
|
||||||
* 16 BIT Accumulator
|
* 16 BIT Accumulator
|
||||||
* 12 BIT Program Counter
|
* 12 BIT Program Counter
|
||||||
|
|
||||||
Example: 0001000000001010 on RAM position 0 <br>
|
Example: 0001000000001010 at RAM position 0 <br>
|
||||||
0001 means: LOAD the content of ADDRESS 000000001010 into the ACCU
|
0001 means: LOAD the content of ADDRESS 000000001010 into the ACCU
|
||||||
|
|
||||||
|
|
||||||
|
2
makefile
2
makefile
@ -7,7 +7,7 @@ DEBUG = -DNDEBUG
|
|||||||
|
|
||||||
VPATH = src
|
VPATH = src
|
||||||
#--------------Linker-Part-----------------
|
#--------------Linker-Part-----------------
|
||||||
toy_cpu : main.o toy.o helper.o
|
toy-CPU : main.o toy.o helper.o
|
||||||
echo $@ is now linked
|
echo $@ is now linked
|
||||||
$(CC) $(LDFLAGS) -o $@ $^
|
$(CC) $(LDFLAGS) -o $@ $^
|
||||||
#--------------Compiler-Part---------------
|
#--------------Compiler-Part---------------
|
||||||
|
Loading…
Reference in New Issue
Block a user