Ah, I thought near means intrasegment absolute and short means relative, but near jumps can also be relative
There isn't a jump instruction with a absolute immediate destination, except far jump? No there is none, I know
Roflo wrote:Ah, I thought near means intrasegment absolute and short means relative, but near jumps can also be relative
"Short" is 1-byte (signed) displacement, "near" is 2-byte or 4-byte (signed) displacement.
Roflo wrote:There isn't a jump instruction with a absolute immediate destination, except far jump? No there is none, I know
You can jump to an absolute target in a register (e.g. "jmp eax") and you can use indirect jumps (e.g. "jmp [pointer]"); but there's no jumping to an absolute immediate.
Note that there's very few cases where "jump to absolute immediate" makes sense but can't be converted into a near jump. The only case I can think of is jumping from position independent code to code at a fixed/known address.
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.