我是汇编新手,我不确定为什么我的代码不起作用。
我用ASCII格式输入和显示,我可以看到1和3,但是为什么没有显示加法和?
我的程序只是假设执行加法。并显示如下内容:
'>1+3=4
如果输入是 1 和 3,那么如果用户输入 ! 它停止,否则循环回来。
Loop,Load Greater
Output /for the ">" symbol
Input
Output
Store X /Taking input, storing and displaying 1st operand
Load Addr
Output /Loading and displaying "+"
Input
Output
Store Y /Inp, str, displaying 2nd operand
Load Equal
Output /Display "="
Load X
Add Y
Output /Adding then displaying sum
Input
Store Cond
Skipcond 800
Jump Loop
Halt
Greater, DEC 62
X, DEC 0
Addr, DEC 43
Y, Dec 0
Equal, Dec 61
Cond, DEC 0```