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