flat assembler
Message board for the users of flat assembler.

Index > OS Construction > output color & blinking problem

Author
Thread Post new topic Reply to topic
abuashraf



Joined: 11 Nov 2006
Posts: 88
abuashraf
Hi,

my os works in real mode,and when I set the output mode
like this
Code:
        mov     ax,0x0600               ;scroll up the whole screen
        mov     bh,0xfd                 ;purple on white    
        mov     cx,0x0000               ;from 00,00
        mov     dx,0x184f               ;to 24,79
        int     10h                     ;call BIOS
       call    cursor
        ret   
    

everything just keeps blinking,this is my first problem,
what should I do to stop the blinking?,also I want the forground color
to be purple,and the background to be white,the above code worked fine
under bochs,but on real hardware the background looked close
to gray?
what valuse will print purple on white background.

Thanx.
Post 11 Jul 2009, 20:18
View user's profile Send private message Reply with quote
windwakr



Joined: 30 Jun 2004
Posts: 827
Location: Michigan, USA
windwakr
Disable the blinking bit...1 sec...

int 10h
Ralf Browns Famous List wrote:

IDEO - TOGGLE INTENSITY/BLINKING BIT (Jr, PS, TANDY 1000, EGA, VGA)

AX = 1003h
BL = new state
00h background intensity enabled
01h blink enabled
BH = 00h to avoid problems on some adapters

Return:
Nothing

Notes: Although there is no function to get the current status on adapters prior to the VGA, bit 5 of 0040h:0065h indicates the state; on the VGA, use AH=1Bh and check offset 2Dh of the returned data (see #00040). When configured for a monochrome display, the Boca Research Multi-EGA with ROM v M1.1 Type D has its screen disrupted if BH is not clear. This call is reported to be "Get Cursor Position" on the Tandy 1000SL/TL
Post 11 Jul 2009, 21:46
View user's profile Send private message Reply with quote
abuashraf



Joined: 11 Nov 2006
Posts: 88
abuashraf
Thanx dude.
Post 12 Jul 2009, 01:10
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.