【发布时间】:2012-11-16 03:01:02
【问题描述】:
我正在尝试编写一个简单的汇编应用程序,它从用户那里读取字符,然后检查输入的字符串是否可以被视为整数。
mov ebx,esp
input:
get_ch eax
cmp eax,0dh
je continue
push eax
jmp input
continue:
put_str 0ah
xor edx,edx
output:
这就是我迷路的地方......
put_ch dword ptr [ebx-4][edx]
dec edx
jmp output
...使用 [ebx-4] 和 edx = 0,我可以输出第一个字符。之后它似乎正在输出空格或空字符。
任何帮助或参考链接将不胜感激,我很难找到可以查找 MASM 的内容。
【问题讨论】:
标签: masm