why only three word is write on the memory ? assembly language -


.model small  .stack 200h  .data     string1 db 'wahab $'  .code  main proc       mov ax,@data     mov ds,ax     mov ax,0b800h       mov es,ax        mov ax,offset string1      mov si,ax      mov di,0      l1:      mov ax,[si]      mov es:[di],ax      inc si     inc di      cmp ax,'$'     jne l1                 main endp 

only 3 character display on screen or video memory ?

video memory word-aligned. byte characted display, odd byte color attribute. thus, when mov [es:di], ax video memory segment, al holds character displayed, , ah - color of character.

l1:  mov al,[si]  mov es:[di],al  inc si add di, 2  cmp al,'$' jne l1 

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -