; multi-segment executable file template. data segment ; add your data here! COUT DW ? COLOR DB ? ends stack segment dw 128 dup(0) ends code segment start: ; set segment registers: mov ax, data mov ds, ax mov es, ax ; add your code here MOV COLOR,2 MOV COUT,0 L1: MOV AH,01H INT 21H INC COUT CMP AL,20H JNE L2 MOV BL,COLOR MOV CX,COUT MOV AH,09 INT 10h ADD COLOR,2 L2: CMP AL,0DH JNE L1 mov ax, 4c00h ; exit to operating system. int 21h ends end start ; set entry point and stop the assembler.