#PCEUMU: a wip i386/i686/x86_64 and maybe ARM emulator
1 messages · Page 1 of 1 (latest)
Interesting. It would be great to know more about it. What are the goals?
Will there be some kind of lib to easily add new targets/machines?
Well i want to try and make a sort of QEMU Virtualbox crossbreed and also its also for learning about CPU architectures
I guess i would make a way to load a binary and then use those functions instead of the already setup functions
I just got my first instruction working but before i do the rest im going to create a screen and a config file and maybe a exec to autogenerate a config
well im currently working on the basic i386 part of it
Anyone interested helping
I find the project interesting, but I don't know much how such things work. (though I did nand2tetris and also adapted yaze code for one of my projects...)
perhaps
So that isnt too hard
Ill get the IN instruction working and then ill show some of it
yeah i wanna check out the code :^ )
I sended the link at the top
yep i saw :)
so uhh
just for compat reasons
i will kindly suggest to make the code use something like callbacks to the stdlib functions
just because i love compatibility
Yh but i can also just use clause gaurds and make it use the system api
First ever square on the screen
is that like running from a x86 vm
or its just a graphics test
graphics test
still cool nonetheless
i have just inplemented the hlt function gonna do IN so i can do 0xE9
and now it has a configuration
add a select for the bios file
well not really
not now at least
yet
🔥🔥🔥🔥 json
i hate json
but still cool you parsed it on c
Yeah gonna do that
Why you hatin on json
idk too javascript for me
What would be better
yeah
harder to edit
but i mean
if you dont have a hex editor you are not a true developer
otherwise you can make a config build function
Ym like -flags bios.bin,thingalling.iso,1mb,-wfi
not like that
because its position determinant
and people will always be dumb
so more like
-flags flagtype,flagdata,...
I could so that but i need to parse a huge fucking string i can try to
yeah lmao
the string would be huge
i mean just stick to json ngl
its not the best or the most used for flags
but eh
it works
I might make it support diffrent types based on the first passed argument
Might just jump back behind my computer even tough its 1pm
To add multiple parsing options
[bits 16]
jmp 0xF000:0x0000
times 16-($-$$) db 0``` works
_start:
mov ax,0xB000
mov ds,ax
mov [ds:0x8000],byte 'A'
hlt``` and everything except the mov[ds:0x8000] line works
try loading seabios instead
I have like a few instructions so i wont get alot if even anything
okay
is the code pushed?
i wanna look
@signal stump
nvm its not
could you perhaps?
Check cpu branch
looks good
the current state of this is probably like i386 if it were a RISC
Yeah cuz it is a WIP
btw if youre using make you should probably build all objects separately then link later so that you can use the -j flag
Yeah i am doing that
I think imma restart using cpp
you dont need to restart
you can just rename files from .c to .cpp
which is kinda the entire point of c++ lol
but i want to rewrite using classes
then refactor
Isn't VirtualBox based on QEMU or a fork of a sort?
virtualbox used some of qemus hardware device code and used qemus old tcg as a fallback when it was first released but that code is long gone
even if i wanted to im not sure if i would need to fully emulate stuff like the i2c and northbridges
and i do not know how to find it
you can always just look at seabios source to see what it needs
I cant find anything about memeory
i mean isnt memory just memory
ignoring the pcie memory cards and hotplug stuff that qemu can emulate
Still
I sended a mail to the seabios mailing list hoping for a awnser if i get a awnser i will use seabios
you can still use tho
if you dont intend to make ur emulator commercial i guess
Would just be open source
I guess i will see if i dont get any awnsers i might as wel write a bios myself
i made a lil config generator for my recreation of my stuff because C was not fun
UmU what's this 😳
What?
