Text-Mode Programming Question #1 What are the three levels of access to the video display when writing characters on the screen in text mode?

Slides:



Advertisements
Similar presentations
BINARY & HEX I/O. Binary input : read in a binary number from keyboard, followed by a carriage return. character strings of 1’s & 0’ we need to convert.
Advertisements

DOS and BIOS Interrupts DOS and BIOS interrupts are used to perform some very useful functions, such as displaying data to the monitor, reading data from.
Computer Organization & Assembly Language
More about procedures and Video Processing. Lesson plan Review existing concepts More about procedures and boolean expression Video processing.
Video systems (continue). Practice Modify the program to get a string from a keyboard to display the input string on the middle of the screen with reverse.
Important Irvine Library Procedures Randomize Randomize –Initializes the seed of the random-number formula by both the Random32 and the RandomRange procedures.
Assembly Language for Intel-Based Computers Chapter 15: BIOS-Level Programming (c) Pearson Education, All rights reserved. You may modify and.
1 Procedures and Interrupts Chapter 5 n Stack n Procedure n Software Interrupt u BIOS-level access u DOS-level access n Video Display u Direct Video access.
CS2422 Assembly Language & System Programming November 2, 2006.
Chapter 7 Programming with DOS and BIOS Function Calls Objectives: The use of DOS and BIOS function call How to read the PC’s keyboard How to send text.
Graphics Bitmaps Drawing characters glyphs and multicolor patterns.
Kip Irvine: Assembly Language for Intel-Based Computers
Screen Display Module M15.2 Sections 9.5, 13.1, 13.2.
Review Questions Chapters What TUTOR command is used to enter a string of ASCII bytes into memory? /MA 2.What are the names of the 8086 index.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#8) By Dr. Syed Noman.
Program.-(4)* Write a program for input two integer number with message and display their sum. Algorithm steps Algorithm steps 1.Display message for input.
Assembly Programming Timothy C. Rice Jr., MIT. OUTLINE Basic Structure Exit to Dos Print Character Clear Screen Change BG & FG Color Set Curser Location.
1 Advanced Features of Keyboard Processing Suthida Chaichomchuen
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 15: BIOS-Level Programming (c) Pearson Education, All rights reserved. You.
ICS312 Set 4 Program Structure. Outline for a SMALL Model Program Note the quiz at the next lecture will be to reproduce this slide.MODEL SMALL.586 ;
Aloha Aloha What you see: What the computer sees: binary number columns binary number columns
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
ORG ; FOUR INT 21H and INT 10H Programming and Macros Dec Hex Bin
Lecture 11 Last notes on interrupts and exam review Dr. Dimitrios S. Nikolopoulos CSL/UIUC.
ECE291 Computer Engineering II Lecture 9 Josh Potts University of Illinois at Urbana- Champaign.
Video Monitor Uses raster scanning to display images –Beam of electrons illuminates phosphorus dots on the screen called pixels. Starting at the top of.
The x86 PC Assembly Language, Design, and Interfacing By Muhammad Ali Mazidi, Janice Gillespie Mazidi and Danny Causey © 2010, 2003, 2000, 1998 Pearson.
Text-mode Video Dr. Dimitrios S. Nikolopoulos CSL/UIUC
1/2002JNM1 Positional Notation (Hex Digits). 1/2002JNM2 Problem The 8086 has a 20-bit address bus. Therefore, it can access 1,048,576 bytes of memory.
Assembly Language for x86 Processors 6th Edition
BIOS and DOS Programming in DOS INT 10 and 21H. Interrupts There are some extremely useful subroutines within BIOS or DOS that are available to the user.
Another Example: #include<BIOS.H> #include<DOS.H>
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
1 Screen and Keyboard Operations Suthida Chaichomchuen
1 Chapter 5: Procedures and Interrupts Assembly Language for Intel-Based Computers, Kip R. Irvine 3rd edition 3/17/2000.
Functions available for Writing to the Video Display Three different ways to write to the display –Irvine library functions –DOS Video Functions (Interrupt.
Lecture 10: BIOS and DOS Programming
ECE291 Lecture 12 Mode 13h Graphics. ECE 291 Lecture 12Page 2 of 27 Lecture outline Color theory Video Hardware Mode 13h Graphics File Formats.
Computer Graphics Prepared By: Bahram Taheri Sept Amirkabir University of Technology & Birmingham University.
ECE291 Computer Engineering II Lecture 15 Josh Potts University of Illinois at Urbana- Champaign.
Binary Number Output To display a number in binary format, a program looks at each bit in the number and sends the ASCII equivalent of a ‘1’ (31h) or a.
Video systems. Lesson plan Review the code for the previous exercise Video systems Review for midterm exam.
8086 Microprocessor Interrupts By: Vijay Kumar. K Reference From Slide Share.
3 Types of Video Output for Text DOS-level INT (Int 21) Output can be easily redirected to other devices (printer, disk) Slow Speed Cannot control the.
ECE 103 Engineering Programming Chapter 53 Generic Algorithms Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material.
10H Interrupt. Option 0H – Sets video mode. Registers used: – AH = 0H – AL = Video Mode. 3H - CGA Color text of 80X25 7H - Monochrome text of 80X25 Ex:
String Instructions String instructions were designed to operate on large data structures. The SI and DI registers are used as pointers to the data structures.
4. Kernel and VGA ENGI 3655 Lab Sessions. Richard Khoury2 Textbook Readings  None.
Microprocessors Monday, Apr. 16 Dr. Asmaa Farouk Faculty of Engineering, Electrical Department, Assiut University.
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 13: 16-Bit MS-DOS Programming Interrupts (c) Pearson Education, All rights reserved.
Chapter Six. Exercises Clear the screen Write a procedure to show a symbol at (dl, dh). AL stores the symbol. Write a procedure to control a character.
Lecture 11 Text mode video
Direct-Access Color Graphics Chapter 11. Graphics modes C++ provides a different combination of graphics characteristics. These characteristics include.
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
File Operations. FILE PROCESSING For the purposes of the following discussion, reading means copying all or part of an existing file into memory Writing.
Chapter 5: Procedures and Interrupts
ECE291 Computer Engineering II Lecture 12 Josh Potts University of Illinois at Urbana- Champaign.
Problems in IO CS 1550 Recitation December 2 nd /4 th, 2002 The questions in this slide are from Andrew S. Tanenbaum's textbook page 376, 377.
CS-401 Computer Architecture & Assembly Language Programming Lecture-16 Display Memory.
Computer Graphics Lecture 04 Point Taqdees A. Siddiqi
1st prog! Q: Read a char – from a keyboard & display it at the beginning of the next line! ====== A.
CS-401 Computer Architecture Assembly Language Programming
9/17/2018 Kiến Trúc Máy Tính.
Microprocessor and Assembly Language
8086 Registers Module M14.2 Sections 9.2, 10.1.
UNIT-V Interrupt structure of Vector interrupt table.
CS-401 Computer Architecture & Assembly Language Programming
Unit:08 Software Interrupts
COMP2012H: OOP and DS (honors track)
Presentation transcript:

Text-Mode Programming Question #1 What are the three levels of access to the video display when writing characters on the screen in text mode?

Text-Mode Programming Question #1 What are the three levels of access to the video display when writing characters on the screen in text mode? MS-DOS-level BIOS level Direct video access

Text-Mode Programming Question #2 Which level of access produces the fastest output?

Text-Mode Programming Question #2 Which level of access produces the fastest output? Direct Video - characters are moved directly to video RAM, so the execution is instantaneous. (Full screen mode must be used under Windows NT, 2000, and XP)

Text-Mode Programming Question #3 How do you run a program in full-screen mode?

Text-Mode Programming Question #3 How do you run a program in full-screen mode? 1.Use ALT-Enter or 2. create a shortcut to the program’s.EXE file. Then open properties dialog for the shortcut, select Screen properties, and select Full-screen mode.

Text-Mode Programming Question #4 When a computer is booted in MS-DOS, what is the default video mode?

Text-Mode Programming Question #4 When a computer is booted in MS-DOS, what is the default video mode? Video mode 3 - (text mode,16 colors, 80 columns x 25 rows)

Text-Mode Programming Question #5 Each position on the video display holds what information for a single character? How many bytes are needed in memory for each character?

Text-Mode Programming Question #5 Each position on the video display holds what information for a single character? –Attribute (color) How many bytes are needed in memory for each character? –2 – one for the character, one for the attribute.

Text-Mode Programming Question #6 Which electron beams are required to generate any color on a video display?

Text-Mode Programming Question #6 Which electron beams are required to generate any color on a video display? intensity,red, green, and blue

Text-Mode Programming Question #7 Show the mapping of foreground and background colors in the video attribute byte.

Text-Mode Programming Question #7 Show the mapping of foreground and background colors in the video attribute byte. IRGBIRGB backgroundforeground BlinkRGBIRGB

Text-Mode Programming Question #8 Which INT 10h function positions the cursor on the screen? What parameters are required when setting the cursor position with INT 10h?

Text-Mode Programming Question #8 Which INT 10h function positions the cursor on the screen? Function 2 What parameters are required when setting the cursor position with INT 10h? DH, DL = row, column values BH = video page

Text-Mode Programming Question #9 Which INT 10h function scrolls text in a rectangular window upward? What parameters are required when scrolling text in a window upward?

Text-Mode Programming Question #9 Which INT 10h function scrolls text in a rectangular window upward? Function 6 What parameters are required when scrolling text in a window upward? AL = number of lines to scroll ( 0=all) BH = video attribute for blanked area CH, CL = row, column of upper left window corner DH, DL = row, column of lower right window corner

Text-Mode Programming Question #10 Which INT 10h function writes a character and attribute at the current cursor position? What parameters are required when writing a character and attribute at the current cursor position?

Text-Mode Programming Question #10 Which INT 10h function writes a character and attribute at the current cursor position? Function 9 What parameters are required when writing a character and attribute at the current cursor position? AL = ASCII code of character BH = video page BL = attribute CX = repetition count

Text-Mode Programming Question #11 Which INT 10h function sets the cursor size?

Text-Mode Programming Question #11 Which INT 10h function sets the cursor size? Function 1

Text-Mode Programming Question #12 Which INT 10h function gets the current video mode? What is returned when the function that gets the current video mode is called?

Text-Mode Programming Question #12 Which INT 10h function gets the current video mode? Function 0Fh What is returned when the function that gets the current video mode is called? AL = current display mode Ah = number of columns BH = active video page

Text-Mode Programming Question #13 Which INT 10h function toggles the blinking and intensity mode bit?

Text-Mode Programming Question #13 Which INT 10h function toggles the blinking and intensity mode bit? Function 10h

Text-Mode Programming Question #14 Write the ASM code to clear the screen using INT 10h, function 6?

Text-Mode Programming Question #14 Write the ASM code to clear the screen using INT 10h, function 6? Mov ah, 6;function 6 mov al, 0;scroll entire screen up int10h;use int 10h