我对程序集很陌生,我正在尝试使用一个程序。因此,每当我尝试编译它时,都会收到该行的错误,如代码中的注释下所列。
我想知道是否有人知道为什么 NASM 在我为其余的汇编代码定义一些东西时会检测到这个错误?
也许它与 main 的定义方式有关?
PS我只列出了代码的第一部分,因为程序很长。
感谢您的帮助
.xlist ;attempt to define a local label before any non-local labels
include stdlib.a ; parser: instruction expected
includelib stdlib.lib ; parser: instruction expected
.list
.286
dseg segment para public 'data'
; Unknown section attribute 'public' ignored on declaration of section `para'
h word ?
i word ?
cseg segment para public 'code'
assume cs:cseg, ds:dseg
Main