I wrote a program in assembler and compiled it. It is designed to print a blue smiley face, and then waits for the user to press a key before he finishes. He does this last bit, but does not print a smiley face. Can someone explain what I did wrong?
CSEG segment
org 100h
Begin:
mov ax,0B800h
mov es,ax
mov di,0
mov ah,31
mov al,1
mov es:[di],ax
mov ah,10h
int 16h
int 20h
CSEG ends
end Begin
I compiled it with MASM with a 16-bit linker
source
share