Howdy, Stranger!

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

Categories

How to write a tool for changing video mode under DOS?

AndyChangAndyChang Member Posts: 1
Hi All,I never developed program by using Assmbly, but now I need a tool for changing video mode under dos. I know how to change video mode under dos by using debug.exe tool, it's very very simple.
For example, change video mode to 800x600/8bpp:
mov ax,32 ;AH=00h, change video mode; AL=32, 800x600/8bpp
int 10
int 3
But how to write a program by using Assmbly?
Thanks for your help!

Comments

  • monster860monster860 Member Posts: 2
    There are many assemblers like TASM, MASM, and NASM, but you should try NASM. It's free.

    To write a program, you create a text file with your assembly commands. To compile, there are two different ways of compiling:

    [code]
    nasm program.asm
    ren program program.com
    [/code]

    [code]
    nasm program.asm -o program.com
    [/code]
Sign In or Register to comment.