汇编语言基础实验9怎么出来的只有一行字
assume cs:code , ds:data , ss:stackdata segment
db 'welcome to masm!'
db 24h, 71h ,02h
data ends
stack segment
dw 8 dup(0)
stack ends
code segment
start:mov ax ,data
mov ds ,ax
mov ax ,stack
mov ss ,ax
mov sp ,10h
xor bx ,bx
mov ax ,0b872h
mov cx ,3
s:push cx
push ax
push bx
mov es ,ax
mov si ,0
mov di ,0
mov cx ,10h
s0: mov al ,ds:
mov es: ,al
inc si
add di ,2
loop s0
mov di ,1
pop bx
mov al ,ds:
inc bx
mov cx ,10h
s1: mov es: ,al
add di ,2
loop s1
pop ax
add ax ,0a0h
pop cx
loop s
mov ax ,4c00h
int 21h
code ends
end start
求大神帮忙看下是怎么回事源代码跟小甲鱼老师一样的 你认为应该显示几行字? 3行字 zf15272868496 发表于 2016-8-30 10:32
3行字
add ax ,0a0h 改为0aH 就可以了
段地址x10H+偏移地址=物理地坪
页:
[1]