flat assembler
Message board for the users of flat assembler.

Index > OS Construction > where is my wrong in this VGA mode changing code

Author
Thread Post new topic Reply to topic
archie



Joined: 08 Dec 2005
Posts: 4
archie
Code:
int mode40x25[] = {0x38,0x28,0x2D,0x0A,0x1F,6,0x19,0x1C,2,7,6,7,0,0,0,0 };
        int loop_count = 0;     
        clrscr();
        outportb(0x3D8,0); /*disable video signal */
        for( ; loop_count < 0x0E; ++loop_count) {
                outportb( 0x3D4, loop_count ); /* set up CRT register */
                outportb( 0x3D5, mode40x25[loop_count]); /* write to reg */
        }
        outportb( 0x3D8, 0X28); /* switch in mode now */;    


i am doing this but my mode is not changing can you help?
Post 11 Dec 2005, 15:40
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
I do not use this method, but bubach does, so take alook at his source code for "BOS", to see where the problem may be. http://bos.asmhackers.net/downloads.php
Post 11 Dec 2005, 16:09
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.