error A2070: invalid instruction operands while using nested while loop in assembly language

我与影子孤独终老i 提交于 2019-12-01 23:00:36

The error is here:

.while j<i

You cannot compare two memory contents directly. It is possible to compare a memory content with a register, e.g.:

mov dl, i
.while j<dl

BTW: Don't trust an "alien" function (Irvine's WriteDec and Crlf). When a register unintentionally changes its contents, this can due to such a function.

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