Results 1 to 9 of 9

Thread: Text in mode 13h?

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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
    I don't live here any more.

  2. #2
    Addicted Member
    Join Date
    Aug 2005
    Location
    York
    Posts
    197

    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?

  3. #3

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.
    I don't live here any more.

  4. #4
    Addicted Member
    Join Date
    Aug 2005
    Location
    York
    Posts
    197

    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#.

  5. #5
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    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.
    Master of Cyber Fu - A Temple of Digital Chi

  6. #6
    Lively Member Brandito's Avatar
    Join Date
    Nov 2000
    Location
    Here, There, Every Where!
    Posts
    106

    Re: Text in mode 13h?

    Master of Cyber Fu - A Temple of Digital Chi

  7. #7
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    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

    Visual Studio 6, Visual Studio.NET 2005, MASM

  8. #8

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Text in mode 13h?

    Its a shame there are no examples on there
    I don't live here any more.

  9. #9

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Text in mode 13h?

    Took me all today to get this done (hand made font )...

    http://www.vbforums.com/showthread.php?p=2240689
    I don't live here any more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width