|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: Text in graphics mode
Hi Lionel, According to teach yourself gp in 21 days, there is an 8x8 ASCII character set at memory location 0xF000:FA6E. It's stored as a true bitmap (ie, each character is 8 bytes long, one bit per pixel). So, all you have to do is write a function to convert these 1bpp bitmaps to whatever bit depth you're displaying, multiply the ascii character code of the character you're displaying by 8, add this to 0xF000:FA6E ( i don't know what that would be in 32 bit mode... 0xF000FA6E ?) and then you can display the character. if you want the code i can send it to you no worries. Hope that helps Paul Robson > -----Original Message----- > From: gameprogrammer-owner@gameprogrammer.com > [mailto:gameprogrammer-owner@gameprogrammer.com]On Behalf Of Lionel > Pinkhard > Sent: Wednesday, July 26, 2000 3:32 > To: gameprogrammer@gameprogrammer.com > Subject: Text in graphics mode > > > Hi, > > Can somebody please explain to me how to write text in a graphics mode? > I've figured out how to set the cursor (using a BIOS call! :-( ). But when > I tried to write to the screen using VGA BIOS call 0ah, I just got two > strings of repeating characters. I didn't bother messing around further, > since I'm quite sure there's a better way to do it than like this! I know, > from my own experience, that BIOS calls are SLOW! But I have to use them > on CGA and EGA modes (since I don't have any docs on CGA, and I'm still > trying to understand the EGA doc - I think EGA is the trickiest of them > all!) for the moment. Does anybody have any advice for me? > > Kind regards, > > Lionel Pinkhard > > ================================================================= > The GameProgrammer.Com mailing list is for the open discussion > of any topic related to the art, science, and business of > programming games. This list is especially tolerant of beginners. > We were all beginners once > > To SUBSCRIBE or UNSUBSCꫨ please visit: > http://gameprogrammer.com/mailinglist.html > ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCꫨ please visit: http://gameprogrammer.com/mailinglist.html
|
|