-
Text in mode 13h?
I am probably the only person on VBF with any interest in mode 13h at the moment but I will ask anyway.
Apart from creating a custom bitmap font (as a very large byte array :() is there any way to draw text (colored) on the screen in mode 13h?
If there is no built-in way to do this then does anyone have a font I can use?
If not then I'll just make my own (oh god that'll take days)....
ascii 65 (A) would be something like this for a 6x5 font bitmap...
Code:
; 'A'
0,1,1,1,0,0,
1,0,0,0,1,0,
1,1,1,1,1,0,
1,0,0,0,1,0,
1,0,0,0,1,0
-
Re: Text in mode 13h?
Hmmm I don't know...but if its anything like QBasic Screen mode 13 it would support colour...is the resolution 300x200?
-
Re: Text in mode 13h?
320x200 @ 256 colors.
But actually getting any text on the screen at all is proving tricky at the moment.
I don't mind using a bitmapping system because it is more flexible but its more complex to implement.
-
Re: Text in mode 13h?
yeah like qbasic mode 13 :P ......other than that I haven't much idea :).
Oh yeah if you've programmed in qbasic you'd notice how close its asm relations are while vb4-6 relations are closer to c++. now vb .net is closer to c#.
-
Re: Text in mode 13h?
Here is the specs on mode 13:
MOV AL, 13H
INT 10
320x200 graphics mode (VGA/MCGA) /w 256 color.
As far a character support goes:
8x8 pixel box for 40x25 text display.
As far as making your own font goes... you will have to write a whole bunch of code just to get your "font" to display one character after the other.. and so forth. Actually, if you could somehow get the display adapter to print your font instead of the one in bios memory... I guess you would be alright.
looking it up now...
ok, I guess the bios rom only contains the first 128 characters.
Try dumping F000:FA6E to F000:FE66...
null will be: 00,00,00,00,00,00,00,00
smiley will be: 7E,81,A5,81,BD,99,81,FE
etc.
yeah, can't find anything. I know you can specify the starting and ending address for your cursor (using int 10). If you can do this for your own custom ascii chart... you will not have any problems.
I would be interested to know if there is a way to do this.
-
Re: Text in mode 13h?
-
Re: Text in mode 13h?
Oh, GG Brandito. Where you were a year and a half or so ago when I could have used this?! You know how long it took me to get a crappy font looking crappy? I suppose you couldn't call it a font, as all it was were blue pixels plotted onto the screen.
Nice Brand.
chem
-
Re: Text in mode 13h?
Its a shame there are no examples on there :(
-
Re: Text in mode 13h?
Took me all today to get this done (hand made font :D)...
http://www.vbforums.com/showthread.php?p=2240689