私はアセンブリが初めてで、コードが機能しない理由がわかりません。
アスキー形式で入力・表示しているのですが、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```