Change the program name and rework spelling

This commit is contained in:
lux 2017-10-04 23:59:35 +02:00
parent f47a7c9597
commit d67adbc8b1
4 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
*.o *.o
/*.toy /*.toy
/coredump* /coredump*
toy_cpu toy-CPU

View File

@ -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

View File

@ -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---------------

View File

@ -173,6 +173,6 @@ bool execute(uint8_t op_code, int data_addr, uint16_t *ram) // jump if true
case 14: ; break; //NOP case 14: ; break; //NOP
case 15: ; break; //NOP case 15: ; break; //NOP
} }
return jump; return jump;
} }