1. Experiment 9 2 assume Cs: code, DS: Data 3 data segment 4 dB 'Welcome to MASM! '5 data ends 6 7 code segment 8 start: 9 mov ax, data10 mov ds, ax; define data segment 11 12 mov ax, 0b800h13 mov es, ax; define the display segment 14 15 mov CX, 1616 mov Si, 017 mov Di, 10*160 + 80; place the output display in the middle of 10th rows 18 19 s: 20 mov Al, [Si] 21 mov ah, 2; Green 22 mov ES: [di], ax23 24 Inc si25 add Di, 226 27 loop s28 29 mov CX, 1630 mov Si, 031 mov Di, 11*160 + 80; put the output in the middle of the 11th line 32 33 S1: 34 mov Al, [Si] 35 mov ah, 00100100b; 36 mov es in green background Red: [di], ax37 38 Inc si39 add Di, 240 41 loop s142 43 mov CX, 1644 mov Si, 045 mov Di, 12*160 + 80; place the output in the middle of row 12th 46 47 S2: 48 mov Al, [Si] 49 50 mov ah, 01110001b; white bottom blue 51 mov ES: [di], ax52 53 Inc si54 add Di, 255 56 loop s257 58 mov ax, 4c00h59 int 21h60 61 code ends62 end start; line N is N * 160, a row contains 80 characters, 160 bytes