#e8Bit Emulator

6 messages · Page 1 of 1 (latest)

mint perch
#

A lightweight 8-bit VM emulator written in Rust. It simulates a basic CPU with registers, memory, and a custom instruction set. I'm making this project do develop my Rust skills and understand how some things work.

https://github.com/mi66mc/e8bit_emulator

GitHub

Contribute to mi66mc/e8bit_emulator development by creating an account on GitHub.

mint perch
# mint perch A lightweight 8-bit VM emulator written in Rust. It simulates a basic CPU with r...
// WELCOME SCRIPT

MOV C 0;

INPUT A;

STORE A [C];
ADD C 1;
INPUT A;
JNZ 2;          // If nothing in the input continue, else go back

// Welcome message

MOV D 72;       // H
PRINTCH D -N;
MOV D 101;      // e
PRINTCH D -N;
MOV D 108;      // l
PRINTCH D -N;
PRINTCH D -N;
MOV D 111;      // o
PRINTCH D -N;
MOV D 44;       // ,
PRINTCH D -N;
MOV D 32;       //  
PRINTCH D -N;

// Hello, 

MOV D 0;
MOV A [D];
PRINTCH A -N;   // No line break
ADD D 1;
MOV B C;
SUB B D;
JNZ 20;

// Hello, (name)

HALT```

an example of a code
night bramble
#

this is very cool

devout haven
mint perch
devout haven