王爽汇编试验九----练技术贴(没啥技术)
程序代码:
data segment db 'Welcome to masm !' db 02h,42h,71h data ends assume cs:code code segment start: mov ax,data mov ds,ax mov si,0 mov ax,0b800h mov es,ax mov di,[160*11+2*32];从第11行32列开始显示字符 mov bx,17 mov cx,3;外循环控制三行 s: push cx mov cx,17 s0: mov al,[si];内循环单行每个字符的移动 mov es:[di],al inc di mov al,[bx] mov es:[di],al inc si inc di loop s0 inc bx pop cx sub si,17 add di,126 loop s mov ax,4c00h int 21h code ends end start