.data
myname byte "Ngoche Penpa Gyaltsen",0
space byte ' ',0
.code
main PROC
mov esi,0
mov eax,0
mov ecx,lengthof myname
mov edx,offset space
L1:
movzx eax,myname[esi]
call writechar
mov eax,16
mov eax,yellow +(blue*16)
call settextcolor
call writestring
inc esi
loop L1;
exit
My question here is why do we need to set mov eax,0
and mov esi,0
. Also, mov eax,16
is it mandatory before mov eax,textcolor +(background)
because when I run without this my program shows an error. In addition, I want to learn more about masm counter and coloring in program. Can anyone suggest me site where I can practice and solved programming exercises.