Assembly (Intel syntax + NASM) Error: attempt to define a local label before any non-local labels

只谈情不闲聊 提交于 2019-12-01 22:53:59

In NASM a label starting with dot is called a local label. It is appended to the last global label, for example,

L:
.l2: ; it is really L.l2

So you cannot have a local label before any global ones

Peter Cordes

That's not NASM code at all. As @Jester says, it's probably TASM or MASM.

NASM doesn't ASSUME, so you can be 100% sure this is not NASM code.


It's definitely not Linux code, either. Note the .286 directive. That means it will be 16-bit code. Even if you convert the syntax to NASM, the resulting binary will not do anything useful on your Linux system.

(This question doesn't mention Linux, but the followup does).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!