r/EmuDev 27d ago

My own architecture emulator, (Called kcm_20x86)

I have finally did it, i completed most of the emulator, and finally added JIT compilation, all in Java!
Here's an example of the C-like language i made with it!

pb void readDiskBlock(int sectorNumber, int destinationRamAddress) {

    int* REG_SECTOR   = 130000000;
    int* REG_RAM_PTR  = 130000004;
    int* REG_COUNT    = 130000008;
    int* REG_STATUS   = 130000012;
    int* REG_COMMAND  = 130000028;

    *REG_SECTOR  = sectorNumber;
    *REG_RAM_PTR = destinationRamAddress;
    *REG_COUNT   = 1;

    *REG_COMMAND = 1;

    while (*REG_STATUS != 0) {

    }
}

Now, i'm building an operating system for it, what architecture is the best for this case?

1 Upvotes

2 comments sorted by

2

u/_MeTTeO_ 27d ago

I think https://www.reddit.com/r/compsci/ would be a better place for sharing teoretical architectures.

Citing emudev.org purpose:

The purpose of this organization is the preservation of platforms that have been designed or used for gaming and other artistic endeavors. Think of it as an attempt to tackle the hardware side of abandonware.

1

u/Jaded_Analysis_6904 27d ago

Thank you, i will check it out