汇编实验13(3)
assume cs:codecode segment
s1: db 'Good,btter,best,','
s2: db 'Nerver let it rest,','
s3: db 'Till good is better,','
s4: db 'And better,best.','
s: dw offset s1, offset s2, offset s3, offset s4
row: db 2,4,6,8
start:mov ax,cs
mov ds,ax
mov bx,offset s
mov si,offset row
mov cx,4
ok:mov bh,0
mov dh, ;
mov dl,0
mov ah,2
int 10h
mov dx, ;
mov ah,9
int 21h
add bx,2 ;
add si,1 ;
loop ok
mov ax,4c00h
int 21h
code ends
end start 第20行mov dx, 是应该把方括号去掉吗? Salubrious 发表于 2021-7-9 18:08
第20行mov dx, 是应该把方括号去掉吗?
ds:存储字符串的偏移地址
页:
[1]