【发布时间】:2013-11-13 02:45:55
【问题描述】:
我在使用 Z80 汇编代码时遇到了一些问题,也许您可以帮帮我。代码如下:
aseg
org 3000h
start: ld A, (tops)
ld B, A
cycle: add A, B
djnz cycle
rst 38h
tops: db 3
end start
代码应该将前 n 个整数相加,而数字 n 将从顶部的内存区域中取出。 感谢您的帮助
【问题讨论】: