#SEMU emulator

1 messages · Page 1 of 1 (latest)

glad kindle
#

saalty x86 emulator, what more to say.

#

hey guys

#

saalty here

#

this emulator will feature a lot of stuff hopefully

#

I will post progress here

#

Oh, and its also going to be x86_64

#

I will have to sadly write an x86 instruction decoder

#

this isnt as hard as I thought

#

decoding the instructions at least, they are pretty nice

median snow
#

LET'S FUCKING GOOOOOO

#

#1 saalty fan

glad kindle
#

never knew the day would come where people say they are my #1 fan lol

#

thanks!

marble umbra
#

So its a box86 clone?

glad kindle
#

non, it is qemu-system-x86_64 clone

#

well its a clone of any x86_64 computer

#

thats the entire point lmao

#

I am so smart

#

lol

#

i am proud of what I did here

#

im still a dumbass though

marble umbra
#

C++ ???

#

Why not C?

#

I can see cuz there is no typedef

glad kindle
marble umbra
#

Also why visual studio?

glad kindle
#

its a really nice IDE

#

for windows at least

marble umbra
#

You thought I won't notice the color scheme

glad kindle
#

im not ashamed of using it

marble umbra
#

Its rally nice ig

#

For c# and other ms shit that is

glad kindle
#

yeah, and has built in debugger which you dont have to pay 27$ for (looking at you, remedyBG)

marble umbra
#

I prefer vscode + make file + gdb for C

#

Will it run on the unnamed OS?

glad kindle
#

me too, I love the linux way of doing things (was using gentoo for a while), but windows just feels much more user-friendly and pretty much all games run on it

#

and you cant use gdb or make file in windows easily

glad kindle
marble umbra
#

My solution was to only ever play Minecraft lul

glad kindle
glad kindle
#

maybe if this emulator gets good enough, I can replace qemu with it so that I would have full control over execution and debugging

marble umbra
#

Well , big dreams small yields

#

(I just made that up lmao)

glad kindle
#

lol

#

its true though, I should talk less and do more

#

well, I will be in the vc to work on this emulator

#

you guys can join if yall want

#

for the FPU emulation, is it fine if I just use 64-bit floating point instead of 80-bit

#

80 bit floating point seems tricky

marble umbra
#

Wait what

#

X86 has 80 bit fpu???

marble umbra
glad kindle
glad kindle
#

anything I am missing in the CPU struct?

marble umbra
#

Ram should not be there

#

Instead, use a BUS struct

#

Maybe pointers for the specific pins

#

And aren't gdtr ldtr and idtr nonstandard?

#

Like they have most re bits

marble umbra
#

Oh, forgot about the numbered registers

glad kindle
glad kindle
marble umbra
#

Oh, also the IO bus

marble umbra
#

64 for addr and 16 for size?

glad kindle
glad kindle
glad kindle
sacred cipher
glad kindle
#

will start working on this again pretty soon

glad kindle
#

alright, started work on the instruction decoder

glass nebula
glad kindle
glass nebula
#

loading a value into the selector register also loads the hidden parts from the gdt

glad kindle
#

also - does anyone know where I can find different instructions opcode definitions

glass nebula
#

then as long as the selector doesnt change the gdt is not touched

glass nebula
#

the hidden parts are all the segment params from the gdt, so the base, limit etc

#

the sdm has more details most likely

glad kindle
#

alright, I will have to read up on that too then

marble umbra
#

Updates?

marble umbra
#

Ded

glad kindle
#

Will come back to this soon

glad kindle
#

This project, may not be dead. I have recently made an x86 dynamic instruction encoder, so I will return to this probably.