     1                                  ; File: jmp.asm
     2                                  ;
     3                                  ; Demonstrating near and short jumps
     4                                  ;
     5
     6                                          section .text
     7                                          global _start
     8
     9 00000000 90                      _start: nop
    10
    11                                          ; initialize
    12
    13 00000001 B811000000              start:  mov     eax, 17         ; eax := 17
    14 00000006 3D2A000000                      cmp     eax, 42         ; 17 - 42 is ...
    15
    16 0000000B 7D14                            jge     exit            ; exit if 17 >= 42
    17 0000000D 7D12                            jge     short exit
    18 0000000F 0F8D0C000000                    jge     near exit
    19
    20 00000015 E907000000                      jmp     exit
    21 0000001A EB05                            jmp     short exit
    22 0000001C E900000000                      jmp     near exit
    23
    24 00000021 BB00000000              exit:   mov     ebx, 0          ; exit code, 0=normal
    25 00000026 B801000000                      mov     eax, 1          ; Exit.
    26 0000002B CD80                            int     080H            ; Call kernel.
