Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

VGA mode 12h



hey, does anybody know how to program the video card directly

in VGA mode 12h (640x480, 16 colors)? just something simple, like

plotting a pixel..


-Assassin




Comments

  • : The same way you program the 320x200x256....

    : But with the figures 640x480x16....

    : Pretty basic.....


    uhh.. they're actually a lot different to program.

    640x480x16 is not nearly as "basic" as mode 13h..




  • MichaelJensenMichaelJensen Member Posts: 2
    : : The same way you program the 320x200x256....
    : : But with the figures 640x480x16....
    : : Pretty basic.....


    : uhh.. they're actually a lot different to program.
    : 640x480x16 is not nearly as "basic" as mode 13h..
    :
    :
    :
    :

    ok well, I've collected a lot of code, some from here, some from other places, and I'm trying to write an EGA graphics library, well I stole a pixel plotting routine from one of this sites messages the other night for mode 0x12 (12H) and changed it for mode 0xD (mode DH? heh) anyways, heres the converted back version that will work on mode 12H: (I use DJGPP for a compiler by the way.)

    (ps. some of the code is larger than will fit on the line in this post, so you may want to copy it to notepad and save it to a file) I HOPE THIS HELPS! :)

    (ps #2, I have no clue how the setpixel routine really works, I just use it.)

    ///////////////////////////////////////////////////////////////
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include

    #include
    #include
    //#include
    #include
    //#include
    #include

  • assassinassassin Member Posts: 21
    hehe, thanks.. since then i've learned and forgotten how mode 12h works -- a couple times.

    never expected to get a reply 3.5 years later :)


    : : : The same way you program the 320x200x256....
    : : : But with the figures 640x480x16....
    : : : Pretty basic.....


    : : uhh.. they're actually a lot different to program.
    : : 640x480x16 is not nearly as "basic" as mode 13h..
    : :
    : :
    : :
    : :
    :
    : ok well, I've collected a lot of code, some from here, some from other places, and I'm trying to write an EGA graphics library, well I stole a pixel plotting routine from one of this sites messages the other night for mode 0x12 (12H) and changed it for mode 0xD (mode DH? heh) anyways, heres the converted back version that will work on mode 12H: (I use DJGPP for a compiler by the way.)
    :
    : (ps. some of the code is larger than will fit on the line in this post, so you may want to copy it to notepad and save it to a file) I HOPE THIS HELPS! :)
    :
    : (ps #2, I have no clue how the setpixel routine really works, I just use it.)
    :
    : ///////////////////////////////////////////////////////////////
    : #include
    : #include
    : #include
    : #include
    : #include
    : #include
    : #include
    : #include
    : #include
    : #include
    :
    : #include
    : #include
    : //#include
    : #include
    : //#include
    : #include

Sign In or Register to comment.