|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Text in graphics mode
Hi Lionel, I think what you want to do is to be able to do a strcpy(or something like that, it's been a while since I played with assembly or any kind of code for that matter..). With BIOS calls, you are essentially poke'ing one or two bytes/words at a time into memory. Yes, very slow. What you want to do is a block copy or a repeat until counter zero kind of copy to move a large block of data into the video buffer. Much faster. If you are set on doing it "to the metal", you'll prolly want to make some routines to do the translating (x,y) coordinates into memory segment offsets. Oh well, brain empty.. must make dinner. ^^; Wing. On Tue, 25 Jul 2000, Lionel Pinkhard wrote: > 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 > İİİİİİİİİİİİİİİİİİİİİÑe 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
|
|