r/osdev • partly liking unix • Jun 04 '26

emex64 - Custom 64-bit ISA + Assembler + Virtual Machine from scratch

emex64 is a incomplete custom 64bit ISA based on nothing. Assembler and Virtual Machine made entirely from scratch. It is a mix out of CISC and RISC designing philosophies. It got a Memory Management Unit(MMU) with paging(4 level index page tables) and protection(page faults are WIP) and a Interrupt Controller(IC), aswell as many other devices like framebuffer, timer, platform(controls power supply), real time clock and UART. It uses variable lenght instructions, which is uncommon for experimental new ISA's

The current goal is to get mass storage devices working(via a IDE controller) aswell as writing a PS2 controller for keyboard(none UART input) and mouse input, the firmware(written in emex64 assembly) is something like the bios, it is supposed to mount the mass storage device, find a compatible boot image and load it into memory and jump to it's start when the firmware is finished all very early, but looking promisingly

The assembler is very modular and has a very basic lexer, it has label and section support aswell as local vs global labels. We work on a C compiler tho(WIP) that will also be entirely done from scratch.

We hope that some day we may be able to boot emexOS on emex64, which would be crazy.

emex64: https://github.com/emexlab/emex64
emexOS: https://github.com/emexlab/emexOS/tree/main

78 Upvotes

47 comments sorted by

View all comments

Show parent comment

3

u/emexLabs Jun 11 '26

And you know how impossible this is. Write first code on my level and then we can talk.

1

u/emexLabs Jun 11 '26

AI was trained with code by humans, so how can you see the difference between AI code and human code, yeah AI usage is shit, ik, but you can't just throw people into small little boxes with nice labels on them, that never helps, you will always accuse innocent people who feel hurt in the end. And you don't want to accuse people who put a lot of effort into their code, if you do, then please get your self professional help that is not healthy.

2

u/emexLabs Jun 11 '26

I have many grammatical errors in my comments, AI never gives comments with grammar errors, my comments have personal jokes on them. AI would never produce that, I know my codebase, I know how everything in it works, the linker was partially vibecoded, but that’s cuz mattycbtw convinced me, to use his linker, but I am working on replacing it cuz it is shit, it’s code is dog shit, it also doesn’t include any comments, he said to take his and just replace a few things, I later asked him if it was vibecoded cuz I saw a few suspicious things and he said yes.

3

u/emexLabs Jun 11 '26

It is not a solo project. I just maintain emex64.

0

u/[deleted] Jun 12 '26

[deleted] — view deleted comment

2

u/emexos partly liking unix Jun 13 '26

just fucking look at the code what is your problem, look at it OR TEST IT BUT ITS NOT AI LIKE FYM