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
Look in the algorithm and source code forum, the Svin has some opcode tutorials.
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
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.
*sigh* well :P Seems this if started will be a longterm thingy then :P
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/
:)
http://library.n0i.net/hardware/intel80386-programmer-manual/
:)
The most complete online data for all x86 compatible CPU's is at http://www.sandpile.org
:alright: Nice link bitrake.
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.
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.
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?.
?? ??? ??? ?? ????? ????????? ???????, ?? ? ?????? ? ?? ????????????
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?.
?? ??? ??? ?? ????? ????????? ???????, ?? ? ?????? ? ?? ????????????