试修改图10·16所示的程序,假设输入数字都是个位十六进制正整数,且这两个数相加的结果也是个位十六进制正整数。
| 01 TRAP x23 ;Input from the keyboard. 02 ADD R1 , R0 , #0 ;Make room for another input. 03 TRAP x23 ;Input another character. 04 ADD R0 , R1 , #0 ;Add two inputs. 05 TRAP x21 ;Display result on the monitor. |
