Text Modes 
Author Message
 Text Modes

  I'm just beggining to program in asm (w\TASM) and wanted to know how
to change the number of rows in normal text mode from 25 to 50?

Thanks in advance for any responses!



Wed, 23 Dec 1998 03:00:00 GMT  
 Text Modes


Quote:
>   I'm just beggining to program in asm (w\TASM) and wanted to know how
> to change the number of rows in normal text mode from 25 to 50?

        Try:

mov ax,1112h
xor bl,bl
int 10h

        it worked for me.

sjb



Wed, 23 Dec 1998 03:00:00 GMT  
 Text Modes



Quote:

>>   I'm just beggining to program in asm (w\TASM) and wanted to know how
>> to change the number of rows in normal text mode from 25 to 50?

>        Try:

>mov ax,1112h
>xor bl,bl
>int 10h

>        it worked for me.

Works for me too.

Do you, by any chance, know how to set 43 lines? I can do it using
MODE CON LINES=43 but can't seem to find a way of programming it.

--
Best wishes,
Mervyn Baldwin.



Thu, 24 Dec 1998 03:00:00 GMT  
 Text Modes

Quote:




> >>   I'm just beggining to program in asm (w\TASM) and wanted to know how
> >> to change the number of rows in normal text mode from 25 to 50?

> >        Try:

> >mov ax,1112h
> >xor bl,bl
> >int 10h

> >        it worked for me.

> Works for me too.

> Do you, by any chance, know how to set 43 lines? I can do it using
> MODE CON LINES=43 but can't seem to find a way of programming it.

Have a look at this program : 60 lines ( not all video boards)
the comments are in French, sorry.

section 1 of 1 of file 60.asm  < uuencode 95 (v40) by R.E.M. >

begin 644 60.asm
<uuencoded_portion_removed>
790E%3D13#0H)"45N9"!3=&%R=`T*#0H
`
end
sum -r/size 58548/1916 section (from "begin" to "end")
sum -r/size 56724/1373 entire input file



Thu, 24 Dec 1998 03:00:00 GMT  
 Text Modes



Quote:
> >>   I'm just beggining to program in asm (w\TASM) and wanted to know how
> >> to change the number of rows in normal text mode from 25 to 50?

> >        Try:

> >mov ax,1112h
> >xor bl,bl
> >int 10h

> >        it worked for me.

> Works for me too.

> Do you, by any chance, know how to set 43 lines? I can do it using
> MODE CON LINES=43 but can't seem to find a way of programming it.

        OK, try this:

mov ax,1201h
mov bl,30h
int 10h
mov ax,0003h
int 10h
mov ax,01112h
xor bl,bl
int 10h

        Int 10h, function 12h, subfunction 30h (in the BL) is used to
        specify the number of scan lines where ..

                AL = 00h -> 200 scan lines
                AL = 01h -> 350
                AL = 02h -> 400

        which will take effect when the video mode is next changed. Hope
        this helps.

sjb



Thu, 24 Dec 1998 03:00:00 GMT  
 Text Modes



Quote:


>> Do you, by any chance, know how to set 43 lines? I can do it using
>> MODE CON LINES=43 but can't seem to find a way of programming it.

>        OK, try this:

>mov ax,1201h
>mov bl,30h
>int 10h
>mov ax,0003h
>int 10h
>mov ax,01112h
>xor bl,bl
>int 10h

>        Int 10h, function 12h, subfunction 30h (in the BL) is used to
>        specify the number of scan lines where ..

>                AL = 00h -> 200 scan lines
>                AL = 01h -> 350
>                AL = 02h -> 400

>        which will take effect when the video mode is next changed. Hope
>        this helps.

WHOOPPEE! Yes it does!

I was being stupid. I thought that when it said "take effect after a
mode set" it meant you had to do the mode set first.
                                              ~~~~~
--
Best wishes,
Mervyn Baldwin.



Sat, 26 Dec 1998 03:00:00 GMT  
 Text Modes

** Dark Seer <tony S > typed this about Text Modes:
 DS<S> I'm just beggining to program in asm (w\TASM) and wanted to know how
 DS<S> to change the number of rows in normal text mode from 25 to 50?

Graphics mode:  mov     ax,0h   ; decimal number of graphics mode
                int     010h    ; call interrupt

I would check out Ralf Brown's Interrupt List to further investigate
your question.  It can be FTP'd from garbo.uwasa.fi in the
/pc/programming/ directory under the names "inter50[a-f].zip".


                          --<In DOS I trust>--

Just came back from beautiful Pismo Beach with $200 less and a sunburn.



Sat, 26 Dec 1998 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Funcky Protected Mode Graphical Mouse Cursor in Text Mode

2. Text Mode Programming and P-Mode

3. Need Help: Get Cursor Position in text mode (mode 3)

4. Need Help: Get Cursor Position in text mode (mode 3)

5. Text mode printing

6. Printing in text mode in CW2003

7. Text Mode/Graphics

8. Mouse in 5.3 text mode?

9. MOUSE SUPPORT IN REXX (TEXT-mode) ???

10. Controlling OS/2 text mode app with VX-REXX

11. Controlling OS/2 text mode app with VX-REXX

12. REXX and text-mode programs (OS/2)?

 

 
Powered by phpBB® Forum Software