assembly - 在我的 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 ===========================================
解决方案
推荐阅读
- python - 我的 django 梦幻足球项目。如何将其他用户的分数显示给每个用户?
- javascript - 从 api axios Vue.js 获取数据时出现问题“无效的道具:道具“项目”的类型检查失败。预期的数组,函数,得到对象”
- kotlin - 有没有更优雅的方法来检查字符串是否是 Kotlin 中的有效 Int?
- html - 使用包含的 Sass 动画混合
- python - 用水量追踪器无法添加数字
- android - Firebase - 如何在 android 应用中获取归因
- symfony - Doctrine - 与关联实体的验证
- reactjs - 有没有比 redux persist 更好的方法来为生产环境持久化 redux 状态数据
- python - 背包问题
- android - chekbox 总是检查 recyclerview 中的最后一项