A simple emulator for a virtual cpu
The emulator is for a virtual cpu I called AX10 the name stands for A - Allix some old project of me, which I never ended up finishing, X - for emulator and the 10 because I wanted the cpu to have 10 registers. The emulator is probably not 100% accurat about how a real cpu works but I try my best to improve it and learn to make it better and more accourat.
At the moment the first simple Instructions of the cpu are implemented, and I added a rust version to the original python version, and only the rust version will recive further updates the python one is more of a concept plan of this project.
I plan to implement in the next versions a first bios with the options to get input, display text and save to disk. Furthermore I plan for this bios to have the ability to display a graphics.
As soon as I think the emualtor is on a good point for it, I will try to write an emulator for a esp8266 to acctualy function like this cpu and build a board for vga out, keyboard in and a sd card for saving. Furthermore I plan to acctually build a functioning chip with the ability to use the same code as this emulator but this will be not in near future.
At the current time I havent wrote an assembler for this cpu, so if you want to code your own demo for this you will need to write it in binary.
The commands
0x0
0x1 registernum typ content
0x2 registernum typ content
0x3 registernum typ content
0x4 registernum typ content
0x5 registernum typ content
0x6 bit_to_jump_to
0x7 time
0x8 ramaddress typ content
0x9 register typ content
Looks if rh is 1 or not if 1 same as jmp
Looks if rh is 0 or not if 0 same as jmp