Archived
1
0

Update README.md

This commit is contained in:
Erick
2022-02-13 18:10:33 +01:00
committed by GitHub
parent 6f59e331a6
commit 25d3e07cea
+4 -4
View File
@@ -12,7 +12,7 @@ Instructions are 16 bits wide and have 4-bit opcodes. The instruction set define
### Hardware
TyVM is a very barebone VM that has:
- 128kb memory
- 128kb of memory
- 16 opcodes
- 10 registers
- 3 condition flags
@@ -71,7 +71,7 @@ enum { // [name, 8-bit value]
- [10] Load instruction from memory at program counter [RG_PC] address;
- [20] Increment RG_PC;
- [30] Read opcode for next instruction;
- [40] Perform instruction read in 40;
- [40] Perform instruction read in 30;
- [50] Goto 10;
### Build
@@ -97,9 +97,9 @@ make
Below is a hello-world program for `TyVM`, the assembled program can be found in `asm/` directory
```shell
.ORIG x3000
LEA R0, HENLO_WORLD
LEA R0, HELLO_WORLD
PUTS
HALT
HELLO_STR .STRINGZ "Henlo World!"
HELLO_STR .STRINGZ "Hello World!"
.END
```