Drawing directly by graphics card on Intel 8086

佐手、 提交于 2020-01-06 03:26:06

问题


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?


回答1:


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.




回答2:


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


来源:https://stackoverflow.com/questions/20657414/drawing-directly-by-graphics-card-on-intel-8086

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!