虎书 哪位大哥有哦,买不到啊。有的给小弟发一个来!
谢了52040525@
?
assume cs:code,ds:data,ss:stack data segment db 'welcome to masm!' db 02h,24h,71h data ends stack segment dw 8 dup(0) stack ends code segment start: mov ax,data mov ds,ax mov si,0 mov cx,3 mov ax,stack mov ss,ax mov sp,10h mov ax,0b872h s: mov es,ax push cx push ax mov cx,16 mov bx,0 mov di,0 s0:mov al,[bx] mov es:[di],al mov al,[16+si] mov es:[di+1],al add bx,1 add di,2 loop s0 pop ax add ax,0AH pop cx add si,1 loop s mov ax,4c00h int 21h code ends end start