I wrote a simple code for change the color of the screen but at the and of the instructions i get a strange output. I know exist better ways to change the color but is just a test.
The program work fine but at the end i receive a strange output. I had the same problem on Windows 2000 and Windows XP. Where is the error?
MOV AH,00H
MOV AL,13H
INT 10H
MOV BH,00H
MOV DX,0000H
OuterLoop:
MOV CX,0000H
InnerLoop:
MOV AL,2AH
MOV AH,0CH
INT 10H
INC CX
CMP CX,013FH
JBE InnerLoop
INC DX
CMP DX,00C7H
JBE OuterLoop
MOV AH,00H
INT 21H