Assembler: Relative Jump

Can someone explain in English what the relative jump is in assembler?

+3
source share
3 answers

This is an OP code whose operand will cause execution to jump to an address relative to the current address. The operand value is offset .

Suppose that the relative jump instruction is stored at address 0x0005 and has operand 3. Then, execution will go to address 0x0008. If the operand is -3, execution will go to address 0x0002.

+10
source

A relative transition differs from an absolute or long transition in that the instruction does not encode the entire address of the target where execution will continue.

, , . , . , .

, . , 8- 8- , -126 +129 . , , .

+3

( ) ( ).

" ?". .

+1

Source: https://habr.com/ru/post/1756362/


All Articles