






Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Prepare-se para as provas
Estude fácil! Tem muito documento disponível na Docsity
Prepare-se para as provas com trabalhos de outros alunos como você, aqui na Docsity
Encontra documentos específicos para os exames da tua universidade
Prepare-se com as videoaulas e exercícios resolvidos criados a partir da grade da sua Universidade
Responda perguntas de provas passadas e avalie sua preparação.
Ganhe pontos para baixar
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Neste documento e apresentado a fundo sobre a programaçao com a interrupçao de video 10h.
Tipologia: Manuais, Projetos, Pesquisas
1 / 11
Esta página não é visível na pré-visualização
Não perca as partes importantes!







April 22, 2013
When an application program needs to write characters on the screen in text mode, it can choose between three types of video output:
Any computer running or emulating MS-DOS can use INT 21h to write text to video display.
Characters are output using INT 10h function, known as BIOS services. This executes more quickly than int 21h, and permits the control of text color.
Characters are moved directly to video RAM (screen buffer), so the execution is instantaneous.
Screen Buffer: The screen buffer begins at B800:0000 and it has some rows and columns. Number of columns is usually 80. Number of rows can be 25 or 40 in most cases. Each line on screen takes 160 bytes (80 x 2 byte for CHARACTER + ATTRIBUTE).
VIDEO Programming with INT 10h: There are two general types of video modes: text mode and graphics mode. Video Text Mode: Fonts : Characters are generated from a memory-resident table of character fonts. Originally, the table was in ROM, but later versions of the BIOS permitted programmers to rewrite the character tables at run time. This makes it possible to create custom fonts in text mode.
Video Text Pages : Text mode video memory is divided into multiple separate video pages, each with the ability to hold a full screen of text. Programs can display one page while writing text to other hidden pages, and they can rapidly flip back and forward between pages. In the days of high-performance MS-DOS applications, it was often necessary to keep several text screens in memory at the same time. With the current popularity of graphical interfaces, this text page feature is no longer so important. The default video page is Page 0.
INT 10h Video Functions:
Lab work:
Excercise1:
Clean the screen using the INT 10h Video bios , then print the word "Hello" in the center of the screen.
Excercise3: Write a program to color the screen background with three colors vertically. Output:
Homework:
Write a program to color the screen background with three colors horizontally, Like this: