flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
bitshifter
They are the same except the hex editor groups it differently...
|
|||
![]() |
|
arcangel
|
|||
![]() |
|
revolution
You have to decode the binary opcodes. Quite tricky to do in x86. Use the Intel manuals as your guide. Especially see manual 2B Appendices A & B for instruction formats and encoding details.
|
|||
![]() |
|
Madis731
You are trying it in PHP? What if you need to simulate graphical stuff. Do you plan on some simple PNG images or SVG-graphics + JS?
|
|||
![]() |
|
Artlav
arcangel wrote: ... Is that what you're trying to do? If yes, you're in for a long, long effort. For opcode encoding and naming you can look at http://sandpile.org/ia32/index.htm The meaning of them can be found in Intel's specs, easy to google. Just in case, even for 16bit subset of x86 it can take many years to make an emulator capable of running meaningful programs. The best thing mine runs after 4 years of intermittent development is only a tetris game. |
|||
![]() |
|
Madis731
Actually for decoding we have our own (MazeGen from the board) effort up and running at http://ref.x86asm.net/index.html
|
|||
![]() |
|
Artlav
It's somewhat chaotic for my liking - for encoding it's not as clear as sandpile, for meaning it's not as descriptive as Intel docs.
Maybe it's just needs getting used to. And, what is x86reference.xml good for? |
|||
![]() |
|
arcangel
Quote: You are trying it in PHP? What if you need to simulate graphical stuff. Do you plan on some simple PNG images or SVG-graphics + JS? I use PHP for undestanding the program code. The emulator will be written in C. Quote: It's called an emulator, or virtual machine - interpret every machine opcode to simulate execution of the program on it. Thanks Ángel |
|||
![]() |
|
Endre
I don't exactly see why you want to create a virtual machine. If I was you, I'd first try to run menuet application natively. For each system call (int instruction) your framework will get a signal (in case of Unix systems) which you can handle to simulate menuetOS.
It's only a fuzzy idea, and I don't know whether it works, but I'd start in this direction. |
|||
![]() |
|
Dex4u
There already one available that works like Endre posted called KlbrInWin and MeOSEmul
See here: http://board.kolibrios.org/viewtopic.php?f=23&t=1273 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.