【发布时间】:2016-02-29 20:54:15
【问题描述】:
我的问题与以汇编 8086 语言打印数组有关。 我使用“emu8086”程序。
以下部分对我来说似乎很好(我是初学者),但我得到的结果是: *P000,而不是:12345。
Main:
A DB 1,2,3,4,5 //my array
SUB SI, SI //SI stands for counter and index here
LEA BX, A
loop3:
MOV DX, [BX + SI]
ADD DX, 30h //converting digit into character
MOV Ah, 2h
int 21h //displaying the character in console window
INC SI
CMP SI, 5
JNE loop3
end Main
请您解释一下我的功能有什么问题吗? 提前谢谢你!
【问题讨论】: