One site that I usually refer to for x86 documentation contains several command codes with a slash and a number. For example, jmpnear absolute indirect gives FF /4, while jmpfar absolute indirectly gives FF /5.
What do /4u mean /5?
To run a quick little test, I connected to a 32-bit process, allocated a bit of memory, and added assembler jmp dword ptr[0x12345678]; the generated bytecode was FF 25 78563412. I understand the endianess address, but how 25does it relate to /4or /5?
I assume that I generated jmpfar, and that /5means that there were five bytes as parameters (4 bytes for address + 1 byte for 25). I'm still confused by where it comes from 25.
source
share