assembly - READING CHARACTER FROM CURSOR -


i working on video application in assembly. use code video mode

mov ah,0       mov al,13h int 10h 

then i'm writing using print (because i'm using emu8086)

mov ah,02h mov dh,1 mov dl,1  int 10h   mov ax,0h mov ax,[bp] mov ah,0  call print_num 

then i'm trying read character in dh, 1 dl,1 should char matrix with

mov ah,02h mov dh,1  mov dl,1 int 10h   mov ah,08h int 10h sub al,'0' 

but i'm getting al = 00 before sub al,'0' , al = d0h after line when should 4 or 5 depending matrix

what doing wrong? or can't char in video mode?

so, appears you're selecting mode 13h, believe 320x200x8bpp? bios getchar routines function in text modes. don't contain logic map pixels graphics modes characters. you'd have write yourself.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -