[b][red]This message was edited by shaolin007 at 2003-10-29 12:21:28[/red][/b][hr]
I'm still learning assembly and I'm trying to practice the stos instruction. First off here is my code...
SEGMENT .text ;Main code segment
mov ax, 0b800h
mov es, ax
mov cx, 3999
mov ah, 08h
mov al, 'a'
mov [es:di], al
mov ax, 4c00h
1st question is, could I use the stosw instruction to do this and how? All I could do with it was write an 'a' then the rest of the screen was yellow. When I use the stosb instruction it works out fine. 2nd, I thought the default background attribute would be black, but it's yellow, how do you change that directly? 3rd, why do I have to double the cx counter since 80x25=2000? Thanks for your help.