Update README.md
This commit is contained in:
@@ -12,7 +12,7 @@ Instructions are 16 bits wide and have 4-bit opcodes. The instruction set define
|
|||||||
|
|
||||||
### Hardware
|
### Hardware
|
||||||
TyVM is a very barebone VM that has:
|
TyVM is a very barebone VM that has:
|
||||||
- 128kb memory
|
- 128kb of memory
|
||||||
- 16 opcodes
|
- 16 opcodes
|
||||||
- 10 registers
|
- 10 registers
|
||||||
- 3 condition flags
|
- 3 condition flags
|
||||||
@@ -71,7 +71,7 @@ enum { // [name, 8-bit value]
|
|||||||
- [10] Load instruction from memory at program counter [RG_PC] address;
|
- [10] Load instruction from memory at program counter [RG_PC] address;
|
||||||
- [20] Increment RG_PC;
|
- [20] Increment RG_PC;
|
||||||
- [30] Read opcode for next instruction;
|
- [30] Read opcode for next instruction;
|
||||||
- [40] Perform instruction read in 40;
|
- [40] Perform instruction read in 30;
|
||||||
- [50] Goto 10;
|
- [50] Goto 10;
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
@@ -97,9 +97,9 @@ make
|
|||||||
Below is a hello-world program for `TyVM`, the assembled program can be found in `asm/` directory
|
Below is a hello-world program for `TyVM`, the assembled program can be found in `asm/` directory
|
||||||
```shell
|
```shell
|
||||||
.ORIG x3000
|
.ORIG x3000
|
||||||
LEA R0, HENLO_WORLD
|
LEA R0, HELLO_WORLD
|
||||||
PUTS
|
PUTS
|
||||||
HALT
|
HALT
|
||||||
HELLO_STR .STRINGZ "Henlo World!"
|
HELLO_STR .STRINGZ "Hello World!"
|
||||||
.END
|
.END
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user