News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

SVGA or VGA initialization

Started by nrdev, May 24, 2009, 02:25:46 PM

Previous topic - Next topic

dedndave

this page does a good job of explaining video mode 13h
read the text - the code is in C - ignore that - let me look for an ASM example

http://www.brackeen.com/vga/basics.html


dedndave


ok - this program fills the screen with red
press any key to exit
when it's done, the text mode is full-screen - type EXIT to close the console window


[attachment deleted by admin]

nrdev

thats it, thanks, it was a lot of help.

dedndave

i found a few more links for you to look at

http://www.codebreakers-journal.com/content/view/140/93/
http://digiassn.blogspot.com/2006/03/asm-working-with-video-palette.html
http://webpages.charter.net/danrollins/techhelp/0113.HTM

that last one tells about other int 10h functions
one of them you will be interested in is int 10h function 1002h

Ossa

A few things:

1) look at this, it is a post of a tutorial that I translated about writing VGA graphics things using DOS under ASM nearly 3 years ago (actually how I learned ASM). Note that full screen is not usable under Vista, but you're OK so long as you're using XP or older.

2) take a peek at this - this is a fully working game using DirectX 6 and is still the best ASM game tutorial out there (IMHO).

3) have a good look at Scronty's site for more up-to-date DirectX usage in ASM.

4) DOS is outdated and really much too hard to use... 32-bit Windows code is the way to go. Go for the Direct X versions.

All the best,
Ossa

[edit] Oh, if you want to know about interrupt codes, you need to look at Ralf Brown's Interrupt Listing i.e. for 10h, ax=1002h [/edit]
Website (very old): ossa.the-wot.co.uk

Farabi

If you want somethings cool, search about VESA and protected mode since DOS will only give you 1 MB of total memory.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"