Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #1006

Re: MS-DOS direct screen output - native and in a window

From "Ed" <invalid@invalid.com>
Newsgroups comp.os.msdos.programmer
Subject Re: MS-DOS direct screen output - native and in a window
Date 2013-09-29 19:33 +1000
Organization Aioe.org NNTP Server
Message-ID <l28ruq$3v9$1@speranza.aioe.org> (permalink)
References <kvn372$vnt$1@dont-email.me><l26b6m$s68$1@speranza.aioe.org> <1380437121snz@nospam.demon.co.uk>

Show all headers | View raw


pete@nospam.demon.co.uk wrote:
> ...
> Sorry, I don't appear to have received the original article from
> James.

It appeared on the news server I'm using.  Unfortunately I didn't notice
until too late I had replied to a post exactly a month old ...

> Provided you are using EGA or later and only interested in
> text modes, just look in the bios data area at seg 40h:
>
>         mov     ax, 40h
>         mov     es, ax
>         mov     dl, es:[4Ah]    ; DL is nr of screen columns
>         mov     dh, es:[84h]    ; max screen row index
>         inc     dh              ; DH is nr of screen rows
>
> Pete

Nice and easy.

It's a pity IBM didn't think to provide ROWS info from the beginning.


Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

MS-DOS direct screen output - native and in a window "James Harris" <james.harris.1@gmail.com> - 2013-08-29 10:10 +0100
  Re: MS-DOS direct screen output - native and in a window "R.Wieser" <address@not.available> - 2013-08-29 12:58 +0200
  Re: MS-DOS direct screen output - native and in a window "Bill Buckels" <bbuckels@mts.net> - 2013-08-29 05:59 -0500
    Re: MS-DOS direct screen output - native and in a window "Bill Buckels" <bbuckels@mts.net> - 2013-08-29 07:23 -0500
      Re: MS-DOS direct screen output - native and in a window "Bill Buckels" <bbuckels@mts.net> - 2013-08-29 08:35 -0500
  Re: MS-DOS direct screen output - native and in a window "Ed" <invalid@invalid.com> - 2013-09-28 20:34 +1000
    Re: MS-DOS direct screen output - native and in a window pete@nospam.demon.co.uk - 2013-09-29 06:45 +0000
      Re: MS-DOS direct screen output - native and in a window "Ed" <invalid@invalid.com> - 2013-09-29 19:33 +1000
        Re: MS-DOS direct screen output - native and in a window "James Harris" <james.harris.1@gmail.com> - 2013-09-29 16:06 +0100
          Re: MS-DOS direct screen output - native and in a window "Ed" <invalid@invalid.com> - 2013-10-01 11:28 +1000

csiph-web