followed is the code:
.model small
.386
.stack 256
.data
tes db 'M'
.code
start:
mov ax,@data
mov ds,ax
mov ah,00
mov al,07h
int 10h
mov ah,09h
mov al,'M'
mov bh,0h
mov bl,01h
mov cx,2h
int 10h
mov ah,4ch
int 21h
end start
;the runing environment is a DOS6.22 virtual machine.
.model small
.386
.stack 256
.data
tes db 'M'
.code
start:
mov ax,@data
mov ds,ax
mov ah,00
mov al,07h
int 10h
mov ah,09h
mov al,'M'
mov bh,0h
mov bl,01h
mov cx,2h
int 10h
mov ah,4ch
int 21h
end start
;the runing environment is a DOS6.22 virtual machine.
Emulation of EGA in virtual machine covers only main functionality, underscoring seems not no be among them. If you run your program in real DOS, it will work as expected.
It also runs in my WinXP NTVDM fullscreen:
Double underlined MM will be displayed then.
It also runs in my WinXP NTVDM fullscreen:
- set the console window property to 80*25
- enlarge to fullscreen (Alt-Enter)
- run your program
Double underlined MM will be displayed then.
I have tried again according your second methord, program run smothly adn successfuly!
I beg you give me a hint about the reason!
I beg you give me a hint about the reason!