Could someone point me in the direction of a tutorial on the asm->opcode portion (not a fullfledged assembler tutorial) I just want to write a simple asm->opcode parser for codeinjection, doesn't need to support FPU cmds or anything just the basics of mov, call, jmp, push etc :P
Posted on 2003-04-14 13:56:12 by SFP
Look in the algorithm and source code forum, the Svin has some opcode tutorials.
Posted on 2003-04-14 14:05:21 by donkey
Yes i've seen those but they seemed to be way more detailed than I need and to be particularly honest I get aggrivated from reading the english... Is really that much information needed? I was sort of hoping todo something in the line of a simple lookuptable(s) or something :P
Posted on 2003-04-14 14:09:26 by SFP
Unfortunately the opcodes are necessarily complex. The x86 began life as an 8 bit processor and has been built up over time to 32 bits. To maintain backward compatibility there are some 8 bit instructions, some 16 and some 32 some instructions incorporate the data some don't. This means there may be many opcodes for the same mnemonic. So, though I may be wrong about this, I believe you are looking at a necessarily complex job but not an insurmountable one. After all there are many assemblers that do just that.
Posted on 2003-04-14 14:18:42 by donkey
*sigh* well :P Seems this if started will be a longterm thingy then :P
Posted on 2003-04-14 14:39:25 by SFP
If you don't care about the new instructions, check out appendix A of the old Intel 80386 Programmer's Reference for starters:

http://library.n0i.net/hardware/intel80386-programmer-manual/

:)
Posted on 2003-04-14 22:13:23 by S/390
The most complete online data for all x86 compatible CPU's is at http://www.sandpile.org
Posted on 2003-04-15 00:06:36 by bitRAKE
:alright: Nice link bitrake.
Yes i've seen those but they seemed to be way more detailed than I need and to be particularly honest I get aggrivated from reading the english... Is really that much information needed? I was sort of hoping todo something in the line of a simple lookuptable(s) or something :P

By the way, of course you have you start from the basics before you can start running. There is no easy thing in the world.
Posted on 2003-04-15 03:52:57 by roticv
Oh, yes. I?m really sorry.
I?d better write next one in Russian. My Russian is a little bit better than ?the english??
Good luck with searching for ?look ups table?.

?? ??? ??? ?? ????? ????????? ???????, ?? ? ?????? ? ?? ????????????
Posted on 2003-07-27 18:59:16 by The Svin
SFP,
You can take a look here:
http://z0mbie.host.sk/ade32.zip
Posted on 2003-07-27 20:23:50 by lingo12