1 assume cs:codesg 2 3 codesg segment 4 db 'welcome to masm!' 5 6 kk: 7 mov ax,0B800H 8 mov ds,ax 9 mov bx,780H 10 mov di,80 11 mov si,0 12 mov cx,3 13 s1w:push cx 14 mov cx,16 15 s1n: 16 mov al,cs:[si] 17 mov byte ptr ds:[bx+di],al 18 add si,1 19 add di,2 20 21 loop s1n 22 mov si,0 23 mov di,80 24 add bx,160 25 pop cx 26 loop s1w 27 28 29 mov di,81 30 mov bx,780H 31 32 mov cx,16 33 ys1: 34 mov al,02H 35 mov byte ptr ds:[bx+di],al 36 add di,2 37 loop ys1 38 39 mov di,81 40 add bx,160 41 mov cx,16 42 ys2:mov al,24H 43 mov byte ptr ds:[bx+di],al 44 add di,2 45 loop ys2 46 47 mov di,81 48 add bx,160 49 mov cx,16 50 ys3: 51 mov al,71H 52 mov byte ptr ds:[bx+di],al 53 add di,2 54 loop ys3 55 56 ;绿色,绿底红色、白底蓝色 57 mov ax,4c00h 58 int 21h 59 60 codesg ends 61 end kk
与您一同分享精彩的网络世界
-486174组织成员