TITLE 背景颜色
INCLUDE Irvine32.inc
.data
string BYTE "12345678",0
color BYTE 0,14,2,4,0,14,2,4
.code
showchar PROC
mov al,[esi]
call WriteChar
ret
showchar ENDP
showcolor PROC
mov eax,white*16
add eax,[edi]
call SetTextColor
ret
showcolor ENDP
main PROC
mov ecx,8
mov esi,OFFSET string
mov edi,OFFSET color
Li:
call showcolor
call showchar
inc esi
inc edi
loop Li
exit
main ENDP
END main