问题描述
我正在尝试将Hello,World!\n
的长度与asm中的整数进行比较,但是 nasm 给我一个错误invalid combination of opcode and operands
。我用Google搜索了cmp
,看来我写的这条指令是有效的,那么为什么会发生这种情况?
msg db "Hello,World!",0x00,0xA ; null-terminator + \n
msglen equ $ - msg ; length of msg (15)
cmp msglen,15 ; compare msglen to 15
je is_equal ; jump to is_equal - if equal
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)