2016-03-19 17 views
3

İşte kodum. Eğer 12 saat video modu ile ekranda karakter boyutunu görebileceğiniz gibi verilen kodMontaj grafiğinde metin boyutu nasıl artırılır?

.model small 
.stack 
.data 

.code 

;setting video mode 
mov ah,0 
mov al,12h 
int 10h 


;setting cursor position 
mov ah,02h 
mov dh,10 ;row 
mov dl,40  ;column 
int 10h 

mov ah,09h 
mov bl,0eh ;colour 
mov cx,1  ;no.of times 
mov al,'B'  ;print B 
int 10h 

mov ah,4ch 
int 21h 

end 

çıkış

Output of the given code

olduğunu. Karakterin boyutunu arttırmak için fonksiyon kodu ve parametrelerinin ne olduğunu bilmek istiyorum.

cevap

2

Karakterinizin boyutu video modu tarafından belirlenir. http://lateblt.tripod.com/bit24.txt'dan:

00: 40x25 Black and White text (CGA,EGA,MCGA,VGA) 
01: 40x25 16 color text (CGA,EGA,MCGA,VGA) 
02: 80x25 16 shades of gray text (CGA,EGA,MCGA,VGA) 
03: 80x25 16 color text (CGA,EGA,MCGA,VGA) 
04: 320x200 4 color graphics (CGA,EGA,MCGA,VGA) 
05: 320x200 4 color graphics (CGA,EGA,MCGA,VGA) 
06: 640x200 B/W graphics (CGA,EGA,MCGA,VGA) 
07: 80x25 Monochrome text (MDA,HERC,EGA,VGA) 
08: 160x200 16 color graphics (PCjr) 
09: 320x200 16 color graphics (PCjr) 
0A: 640x200 4 color graphics (PCjr) 
0D: 320x200 16 color graphics (EGA,VGA) 
0E: 640x200 16 color graphics (EGA,VGA) 
0F: 640x350 Monochrome graphics (EGA,VGA) 
10: 640x350 16 color graphics (EGA or VGA with 128K) 
    640x350 4 color graphics (64K EGA) 
11: 640x480 B/W graphics (MCGA,VGA) 
12: 640x480 16 color graphics (VGA) 
13: 320x200 256 color graphics (MCGA,VGA) 
+1

Her video modu için ekranda karakter satırlarının sayısını ekleyerek bu cevabı büyük ölçüde artırabilirsiniz. Sonuçta bu sayı, karakterlerin ne kadar büyük olacağını belirtir. –

İlgili konular