This preview shows page 1-2-3-4-5 out of 15 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 15 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

3 Types of Video Output for TextBasic Text ScreenText Modes (can only display characters from the IBM extended Character set)Graphics Mode- (can draw any combination of pixels(dots)BIOSBios Interrupt 10h – Video ServicesLab 7A – Positioning the CursorMonochrome AttributesColor Attributes – foreground – chars; background – screen behind chars b7 b0BIOS Interrupt 10h- Video ServicesLab 7B – Character AttributesRandom Number GenerationLab 7C – Pseudo-Random Numbers; DelayMywait ProcedureCLKFREQ3 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 text color•BIOS-level INT (Int 10)•Higher speed than DOS (when filling large areas, a slight delay detected).•User can control the text color•Output cannot be redirected•Direct video Access (Memory Mapped Graphics)•Characters are moved directly to video RAM, so execution is instantaneous•Output cannot be redirected•Usage restricted to full-screen mode under Windows NT, 2000, and XPBasic Text ScreenText Modes (can only display characters from the IBM extended Character set)Graphics Mode-(can draw any combination of pixels(dots)BIOS •Basic Input Output Service – a set of X86 routines stored in ROM that can be used by any operating system for low level I/O to various devices.–Int 10h – Video Services–Int 16h – Keyboard Services–Int 17h – Printer Services–Int 33h - Mouse ServicesBios Interrupt 10h – Video ServicesLab 7A – Positioning the Cursor•Irvine Library Function – Clrscr•Dos Int 21h, Function 7 – get char with no echo–‘w’- move “up” - ‘a’ – move left–‘s’ – move “down” - ‘d’ – move right•Procedure “Setcur” – uses BIOS int 10h, function 2 to set cursor position.Monochrome AttributesValue Attributes07 Normal87 Blinking0F Bright(highlight)70 Reverse(inverse)01 Underline09 Bright underlineColor Attributes – foreground – chars; background – screen behind chars b7 b0BIOS Interrupt 10h- Video ServicesLab 7B – Character Attributes•Procedure setcur – positions cursor•Procedure wchar – writes character with attribute at current cursor position (will have to increment column)Random Number Generation•Irvine Library Functions –Randomize – Re-seeds the random number generator. Current time value is seed value. No input or output required. Only needs to be called once at the beginning of a program.–Random_Range – Returns a pseudo-random 32-bit integer between 0 and n. Inpu t: EAX = n.Lab 7C – Pseudo-Random Numbers; Delay•Randomize and Random-Range used for random number generation. EAX = 10 to produce the values 0-9. To display ASCII value, 30h added to returned value.•Procedure mywait – waits the number of milliseconds in CX.Mywait Procedure•Uses 64-bit timer–Timer accessed through timget procedure•Uses rdtsc (read time stamp counter)–Windows 95 and some 98 versions have problems with the timget procedure–Inner loop of mywait waits number of timeticks equivalent to 1 millisecond (TICS_MS = CLKFREQ*1000)–Need to set CLKFREQ = your PC clock frequencyCLKFREQ•START->Search->Find->FILES/Folders–Find ‘msinfo32.exe’•Programs->Accessories->System Tools->SystemInfo•System Summary•Reboot PC – watch BIOS screen


View Full Document

MSU ECE 3724 - Types of Video Output for Text

Documents in this Course
Timers

Timers

38 pages

TEST 4

TEST 4

9 pages

Flags

Flags

6 pages

Timers

Timers

6 pages

Timers

Timers

54 pages

TEST2

TEST2

8 pages

Load more
Download Types of Video Output for Text
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Types of Video Output for Text and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Types of Video Output for Text 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?