实验12(还有一个小疑问)
本帖最后由 avatar10010 于 2014-10-5 19:18 编辑;为什么程序中没有使用offset也能正确执行呢??不懂
assume cs:code
code segment
start:
xor ax,ax
mov es,ax
mov di,200h
mov ax,cs
mov ds,ax
mov si,do0
mov cx,do0end-do0
cld
rep movsb
xor ax,ax
mov es,ax
mov word ptr es:,200h
mov word ptr es:,0
int 0 ;测试代码
mov ax,4c00h
int 21h
do0:
jmp do0start
db 'Hello everyone !'
do0start:
mov ax,0b800h
mov es,ax
mov di,60
mov ax,cs
mov ds,ax
mov si,202h
mov cx,16
s:
mov al,
mov es:,al
mov byte ptr es:,2
inc si
add di,2
loop s
iret
do0end:
nop
code ends
end start
页:
[1]