汇编语言 王爽(第三版)实验九 实验要求显示绿色、红底绿色、白底蓝色的welcome to masm!assume cs:codesg,ds:datasg datasg segment db welcome to masm! db 2,24h,71h datasg ends codesg segment start: mov ax,0b800h mov es,ax ;es point to the display buffer mov ax,datasg ;ds point to the informatin to be displayed mov ds,ax mov di,160*1080 ;the first line mov bx,0 mov cx,3 s0:push cx mov cx,16 mov si,0 mov bp,0 s:mov al,[si] ;char mov ah,16[bx] ;atrribution mov es:[bpdi],ax inc si add bp,2 loop s add di,0A0h inc bx pop cx loop s0 mov ax,4c00h int 21h codesg ends end start