You are here : assembly8086JMP

JMP - 8086

Unconditional Jump. Transfers control to another part of the program. 4-byte address may be entered in this form: 1234h:5678h, first value is a segment second value is an offset.

Algorithm: always jump


Syntax

JMP Label


Example

include 'emu8086.inc'
 ORG 100h
 MOV AL, 5
 JMP label1 ; jump over 2 lines!
 PRINT 'Not Jumped!'
 MOV AL, 0
label1:
 PRINT 'Got Here!'
 RET


Output / Return Value


Limitations


Alternatives / See Also


Reference