Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8500125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:51:30+00:00 2026-06-11T00:51:30+00:00

There are so many services which can be used with the interrupt 10h, I’d

  • 0

There are so many services which can be used with the interrupt 10h,
I’d like to ask the question about two of them whom with i am confused

First is,

 AH = 06H SCROLL UP WINDOW
 AH = 07H SCROLL DOWN WINDOW

While coding in DOS what is meant by Scroll up / Scroll down ?

Have a look at this,

; AL = NUMBER OF LINES BY WHICH TO SCROLL UP (00H = CLEAR ENTIRE WINDOW)
; BH = ATTRIBUTE USED TO WRITE BLANK LINES AT BOTTOM OF WINDOW
; CH,CL = ROW,COLUMN OF WINDOW'S UPPER LEFT CORNER
; DH,DL = ROW,COLUMN OF WINDOW'S LOWER RIGHT CORNER

Here it says that BH is used to write blank lines at the bottom of the window,
but when i am using this code,

MOV AH, 06H
MOV AL, 00H
MOV CX, 00H
MOV DH, 25
MOV DL, 80
INT 10H

and not defining the value of BH, my results won’t display on the screen and as soon as i declare the value of Bh, it is actually controlling the Foreground and Background color of DOS screen.
so why does it says that BH is used to write blank lines at the bottom of the window ?

The Second is,

;AH = 02 USED To SET CURSOR POSITION

    ;BH = PAGE NUMBER
    ;CH,CL = ROW,COLUMN OF WINDOW'S UPPER LEFT CORNER
    ;DH,DL = ROW,COLUMN OF WINDOW'S LOWER RIGHT CORNER

Here BH is equal to page number :confused: ? what is meant by a page number in a normal DOS screen ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:51:32+00:00Added an answer on June 11, 2026 at 12:51 am

    I don’t have access to tools to test right now — in fact, what are you doing in real mode assembly on DOS anyway? — but from memory, these should be your answers:

    While coding in DOS what is meant by Scroll up / Scroll down ?

    “Scroll up” would be “take all the stuff that’s on the screen and move it upwards”. The value in AL determines by how much. For example when AL=2, “Scroll up” would move all the text on the screen two lines up.

    “Scroll down” would be moving it in the other direction.

    You can move arbitrary pieces/windows of the screen by setting CX and DX appropriately. For example, since the screen presumably has 80×25 characters, when CH=1, CL=1, DH=23, DL=78, the portion that would be moved would be the entire screen except a border of one character along each edge.

    As a special case, AL=0 will cause the entire window to be cleared out.


    why does it says that BH is used to write blank lines at the bottom of the window ?

    It says that BH is the attribute used when writing the blank lines. In text mode, even-numbered addresses hold the characters to display, while odd-numbered addresses hold the attributes used for display. BH will give the attribute for each new character written by this call.

    The attributes are mostly foreground and background color for the character. By setting the background color and clearing the screen, you can effectively fill the screen with one color.


    I would like to clear up a point about hardware registers. You say

    but when i am using this code, and not defining the value of BH

    Please be aware that BH always has a value! You are just using the one that’s lying around, by chance. Please set BH to whatever you need it to be. For example 0x07 for normal white on black colors.


    what is meant by a page number in a normal DOS screen ?

    It is similar to multiple screen buffers (front buffer, back buffer) in modern graphics programming. You can switch pages by calling int 10h with AH=05. See Ralf Brown’s Interrupt list.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There were many questions about C++ template classes which contain static member variables, as
There are many questions like this but I can't find one that seems to
I am developing services which will be consumed by many different platforms like Java,PHP,C
I am aware that there are many services which provide geolocation tools for working
There are many services available for delivering content to users. I am looking for
There are many threads and samples out there about typeahead ( https://gist.github.com/1866739 ) and
I've used WCF RIA services with Entity Framework to build a simple application which
I want to access and see how many and which services are running in
There are many errors here in SO, but this scenario I think its different.
There are many similar questions, but I didn't find one that gets straight to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.