I am to draw some shapes under Intel 8086 without using interrupts but rather by directly accessing the graphics card. The problem is, I don't know how performing such operations is called so I can't even google anything on it. All I know is that this "mode" works on 80x25 resolution and is located on b800h in the memory. I tried googling "8086 graphics mode", "8086 text mode", "drawing without interrupts" and such but no hits whatsoever. Could you please tell me how such drawing is called so that I can read on it?
Drawing directly by graphics card on Intel 8086
2.7k views Asked by Straightfw At
2
There are 2 answers
1
On
With assembly is possible to write directly in the video memory card.
In text mode, which you are referring to, memory graphic starts from location b800h
, and each couple of bytes refer to the character to display, and the color.
Here is some sample code; it runs on dosbox or on a real dos box.
org 100h
;frame buffer location
push 0xb800
pop es
;access the 79 character position on the 80 chars wide mode
mov di, 158
mov al, 40h ; the '@' character
mov [es:di], al
inc di
mov al, 79h ; blue on gray color
mov [es:di], al
A reference for accessing the VGA video cards can be found here.
If you can't find more detailed information, you can always use an interrupt call and then debug and see what it is doing.