Emre Türker
Emre Türker

Reputation: 135

How to respond to this error: #Error 02: Jump>128

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?

Upvotes: 2

Views: 187

Answers (1)

Emre Türker
Emre Türker

Reputation: 135

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:
     .
     .

Upvotes: 1

Related Questions