首页 > 解决方案 > 在我的 VDU(微处理器模拟器)上显示 2 位数字

问题描述

所以试着用微处理器模拟器(sms32v50)学习一些汇编语言。我完成了基础知识,但现在有点卡住了,无法前进。所以我需要添加 2 位数字(例如 22 + 55),然后在 VDU 中显示该答案。似乎有时它确实显示总和的最后一个数字,有时只显示一些图标,如 % 或 '。如果我看 RAM,我可以看到答案是正确的并移动到正确的位置,但在那之后我卡住了。

有什么建议吗?

; ===== WORK OUT 20 PLUS 15 =====================================
 CLO     ; Close unwanted windows.
 MOV AL,22   ; Copy a 20 into the AL register.
 MOV BL,5    ; Copy a 15 into the BL register.
 ADD AL,BL   ; ADD AL and BL. Answer goes into AL.
 MOV [C0], AL    ; Moving the answer to VDU and display it.
 END     ; Program ends
; ===== Program Ends ===========================================

标签: assemblyx86simulatormicroprocessors

解决方案


推荐阅读