Emulating a Computer inside of Roblox

So this is basically a test of mine done in around 3-4 days, where im testing a virtual computer inside of roblox, built from scratch, and from scratch i mean, literally from scratch.

This is built from the ground up.
Its own CPU instruction set, RAM management, pseudo-ASM and pseudo-C compilers (with their flaws, specially the C compiler) and Hard Disk files (ROM, so the files in C:/Root have to be modified manually).

Im planning on making this open source for anyone that would like to contribute on this project and make it bigger.

The project repository will come with the .lua files and the .rbxl file for testing.

Here are some screenshots:

Still very bare bones.
Currently manages 20 instructions and 32kb VRAM.

dropping the lastest demolished build (please take your time to analyze scripts SPECIALLY THE ASM ONES THE FILLERS LIKE PUSH ‘A’ ARE FOR A REASON):
asm.rbxl (94.7 KB)

Github repository (for contributors):
juaninsanote7773/ro-cpuemu: An open source CPU Emulator written in Luau

2 Likes

Now make a Windows Manager and a Desktop Environment for it :fire:

1 Like

probably when its open source, i will get more help, but i have done stuff COOLER than this.
WAY COOLER.

check out my DOOM in Roblox post

1 Like

why is it that just now the servers from github crashed :skull:

should probably use multi line strings for this, like

local asm_script2 = ([[
biosclear
mov @0x55 3
mov eax 3

jmp prettycoollabel

label:
push "Hello"
call printf
pop "Hello"
push "World!"
call printf
pop "World!"

prettycoollabel:
push "a"
pop "a"
cmp @0x55 eax
je label
]])
2 Likes

i just found the way to do this thx

also you can use " in " strings by doing

print("John says \"Hi\"") --> John says "Hi"
2 Likes

yeah but the thing is that the tokenizer most likely will obliterate those quotations
blame CLANG

1 Like

when 1tb VRAM

2 Likes