开发者

Assembly video mode coordinates mapping to character coordinates

I am working on an 8086 dos assembly project , using video mode i was able to draw some lines and st开发者_Python百科uff but now i want to print some characters and found that (interrupt 10,2) uses character (row,col) coordinates that is different than video mode coordinates

what is the most elegant way to map between those two coordinates ? or there is a better way to print characters in video mode ?

what i know currently is that i can do the mapping manually but it won't be accurate as there is no floating point operations in 8086...


Since it wasn't allowed to use external libraries , i ended up doing a simple seven segment like procedure do draw numbers , it looks something like this

Assembly video mode coordinates mapping to character coordinates

the code can be found here if any one is interested


Here you'll find an outstanding ASM library implementing for example:

GPRINT prints ASCIIZ string on a graphics screen

HTH!


Everything you need should be in the following book:

http://www.amazon.com/gp/offer-listing/091539135X/ref=dp_olp_0?ie=UTF8&redirect=true&condition=all

Unfortunately, with the advancement of time/how old that technology is and all, those books are getting harder to find and all the info that used to be floating around on the Internet seems to gradually dropping offline too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜