How do you print the emoticon in the assembly?

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

+3
source share
3 answers

-, . , Windows - , DOS, , , .

, , Alt Enter . .

+1

, MASM, , , MIPS, , , , (int 21h), , , .

0

Your code is fine, you just need to either start full-screen mode, as suggested by Greg Huglill, or configure your command window to use an old raster font (for example, SYSTEM). Right-click the title bar of the window and look at the Font tab.

0
source

Source: https://habr.com/ru/post/1726196/


All Articles