I'm trying to make a function (procedure) in Assembly x86 but for some reason the call opcode gives me the "wring parameters" error
; <somecode>
call max ; --> gives an error
int 0x16
ret
max proc:
; <some code>
ret
max endp
I don't see the problem here but I might be missing something. What's the cause for this error?
The trailing :
on max proc:
is your problem. proc
declarations aren't labels like foo:
I don't know why the error would show up on a call
to it, unless it's for an undefined symbol, but EMU8086's built-in assembler is not very good.