#PCEUMU: a wip i386/i686/x86_64 and maybe ARM emulator

1 messages · Page 1 of 1 (latest)

last wyvern
#

github?

unkempt eagle
#

Interesting. It would be great to know more about it. What are the goals?

feral mesa
#

Will there be some kind of lib to easily add new targets/machines?

signal stump
signal stump
signal stump
#

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

last wyvern
#

which arch is it for atm

#

oh nvm you already said

signal stump
#

well im currently working on the basic i386 part of it

signal stump
#

Anyone interested helping

unkempt eagle
#

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...)

feral mesa
signal stump
#

I mean the config stuff tho

#

And maybe something wise

signal stump
#

Ill get the IN instruction working and then ill show some of it

feral mesa
#

yeah i wanna check out the code :^ )

signal stump
#

I sended the link at the top

feral mesa
#

yep i saw :)

lyric tapir
#

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

signal stump
#

Yh but i can also just use clause gaurds and make it use the system api

signal stump
#

First ever square on the screen

lyric tapir
#

or its just a graphics test

signal stump
#

graphics test

lyric tapir
#

still cool nonetheless

signal stump
#

i have just inplemented the hlt function gonna do IN so i can do 0xE9

signal stump
#

and now it has a configuration

lyric tapir
#

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

signal stump
signal stump
lyric tapir
signal stump
#

What would be better

lyric tapir
#

i also prefer binary formats

#

but uhh

#

probably idk

#

a custom format

signal stump
#

And smaller

lyric tapir
#

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

signal stump
#

Yeah but i can also make some sort of json to bin

#

Or config creator exec

lyric tapir
#

or use flags🙏

#

like qemu

signal stump
#

I hate flags

#

I just hate parsing them

lyric tapir
#

just add a big ass flag with , as a sepparator

signal stump
#

Ym like -flags bios.bin,thingalling.iso,1mb,-wfi

lyric tapir
#

not like that

#

because its position determinant

#

and people will always be dumb

#

so more like

#

-flags flagtype,flagdata,...

signal stump
#

I could so that but i need to parse a huge fucking string i can try to

lyric tapir
#

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

signal stump
#

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

signal stump
#
[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
signal stump
#

less goooo

#

even better

feral mesa
#

try loading seabios instead

signal stump
#

I have like a few instructions so i wont get alot if even anything

feral mesa
#

okay

#

is the code pushed?

#

i wanna look

#

@signal stump

#

nvm its not

#

could you perhaps?

signal stump
#

Check cpu branch

feral mesa
#

looks good

deft knoll
signal stump
#

Yeah cuz it is a WIP

viral wing
signal stump
#

Yeah i am doing that

signal stump
#

I think imma restart using cpp

spark sluice
#

you dont need to restart

#

you can just rename files from .c to .cpp

#

which is kinda the entire point of c++ lol

signal stump
#

but i want to rewrite using classes

deft knoll
#

then refactor

royal canyon
spark sluice
#

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

signal stump
#

and i do not know how to find it

spark sluice
#

you can always just look at seabios source to see what it needs

signal stump
#

I cant find anything about memeory

spark sluice
#

i mean isnt memory just memory

#

ignoring the pcie memory cards and hotplug stuff that qemu can emulate

signal stump
#

Still

signal stump
#

I sended a mail to the seabios mailing list hoping for a awnser if i get a awnser i will use seabios

arctic magnet
#

if you dont intend to make ur emulator commercial i guess

signal stump
#

Would just be open source

#

I guess i will see if i dont get any awnsers i might as wel write a bios myself

feral mesa
#

so use seabios lol

signal stump
#

i made a lil config generator for my recreation of my stuff because C was not fun

cyan cove
#

UmU what's this 😳

signal stump
#

What?