In x86 assembly language, is it possible to specify a jump to a specific line number? Here, I'm trying to use the jmp
instruction to the line number 3. (I don't yet know of a way to pass a label as a parameter to a function, so I'm trying to use a line number instead of a label in this case.)
.686p
.model flat,stdcall
.stack 2048
.data
ExitProcess proto, exitcode:dword
.code
start:
jmp 3; this produces the error shown below
mov ax, 0
mov bx, 0
mov ah, 1
invoke ExitProcess, 0
end start
The code above produces the error 1>p4.asm(11): error A2076: jump destination must specify a label
.
mov bx, 0
? – Emmeram