Virtual CPU with assembler tool chain, emulator and Forth compiler included
Find a file
2023-04-29 14:55:35 +02:00
.vscode Add language support and massively update Forth compiler 2023-04-01 19:20:32 +02:00
examples Update 2023-04-04 20:22:36 +02:00
hence Update 2023-04-04 14:07:21 +02:00
henceforth Add boolean constant words 2023-04-29 14:55:35 +02:00
presentation Update presentation 2023-04-05 14:41:53 +02:00
syntax Update WIP with jump table for words and conditions 2023-04-02 12:39:35 +02:00
.gitignore Update after a long time! 2023-03-23 17:59:10 +01:00
Cargo.lock Add language support and massively update Forth compiler 2023-04-01 19:20:32 +02:00
Cargo.toml Add language support and massively update Forth compiler 2023-04-01 19:20:32 +02:00
LICENSE Add language support and massively update Forth compiler 2023-04-01 19:20:32 +02:00
README.md Update 2023-04-04 14:07:21 +02:00

hence

Virtual CPU with Assembler and Emulator and Forth compiler included.

Architecture

Memory mapping

Start End Name Description
0x0000 0x8000 PRG (Program) ROM of program binary
0x8000 0x9fff ST (Stack) RAM used as stack
0xa000 0xbfff MEM (Memory) Generic RAM
0xc000 OUT (Out) Writes value as decimal number to standard output when trying to be overwritten
0xc001 CHR (Char) Writes value as UTF-8 char to standard output when trying to be overwritten
0xc002 KEY (Key) Waits for key press and returns UTF-8 value of it when trying to be read from

Registers

Hex Name Description
0x1 PC (Program counter) Address of current instruction
0x2 OPC Opcode of current instruction

TODO