Hi,

the try to write an alghoritm, that will assemble a asm-code and would get the length after all (jmps...would be completed later), for my assembler failed (different problems) so i want to know the other way to get the length from a command: Every command has a length. How can i get this length ? I searched  here but i couldn't find anything that would help me with my problem. Any ideas ?
Posted on 2007-01-23 11:35:05 by Nils:D
Intel's manuals state precisely what length each instruction has. Please read them more thoroughly.
Posted on 2007-01-23 13:01:50 by ti_mo_n
Posted on 2007-01-23 13:26:49 by vid
You don't have "commands" in assembly, you have instructions. And instruction length will depend on the instruction operands and a few other things - there's no such thing as a fixed size for MOV, for instance. Some instructions do have fixed size (RDTSC, NOP, ...) but they're generally charaterized by taking no or limited operands.
Posted on 2007-01-23 17:11:38 by f0dder