'How to respond to this error: #Error 02: Jump>128 [duplicate]

Currently I'm working on an assembly project. For some reason I get the error:

#Error 02: Jump>128.

The code segment is as follows:

morechar:
        .
        .
        .
        cmp dl, 0D
        je prep_for_write ;The error is given here
        .
        .
        ;Approximately 150 lines of code in-between
prep_for_write:
        mov ax, 0
        mov bx, 0
        pop ax
        
        cmp ax, 0
        je print_zero
        jmp write_stack
.
.
.

How do I solve this problem?



Solution 1:[1]

Well, for those of you who don't want fancy solutions: You can simply create a dummy label which only contains a jmp statement. Just like:

source:
     .
     .
     je dummy_label
     .
     .
dummy_label:
     jmp target
     .
     .
     .

target:
     .
     .

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1