在 Assembly 8086 (emulator8086) 中调用操作码后出现 Wrong Parameters 错误

Wrong Parameters error after call opcode in Assembly 8086 (emulator8086)

我正在尝试在 Assembly x86 中创建一个函数(过程),但由于某种原因调用操作码给了我 "wring parameters" 错误

; <somecode>

    call max   ; --> gives an error

    int 0x16
    ret

max proc:  

; <some code>

    ret
max endp

我没有看到这里的问题,但我可能遗漏了一些东西。 出现此错误的原因是什么?

max proc: 上的尾随 : 是您的问题。 proc 声明不是像 foo:

这样的标签

我不知道为什么会出现call错误,除非是未定义的符号,但是EMU8086的内置汇编器不是很好。