Skip to Main Content
The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
book

The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition

by Lyla B. Das
May 2024
Intermediate to advanced content levelIntermediate to advanced
665 pages
23h 2m
English
Pearson India
Content preview from The X86 Microprocessors: Architecture and Programming (8086 to Pentium), 1st Edition
282 THE x86 MICROPROCESSORS
MOV WORD PTR OLD, BX ;save old IP
MOV WORD PTR OLD+2, ES ;save old CS
MOV AH, 25H ;install new vector
MOV AL, 09 ;at type number 9
MOV DX, OFFSET NEWINT9 ;point DX to the new ISR
INT 21H
MOV DX, OFFSET START ;count the number of paragraphs
MOV CL, 4
SHR DX, CL
INC DX
MOV AX, 3100H ;make the program resident
INT 21H
END
Example 8.15 is a similar program, except that the hot keys to be invoked are Ctrl+F3. e ISR
for this hot key is copied from Example 8.8. It accesses the video memory directly and causes
the full screen to be green in color.
Example 8.15
.MODEL TINY
.CODE
.STARTUP
JMP START
OLD DD?
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microprocessors and Microcontrollers  by Pearson

Microprocessors and Microcontrollers by Pearson

Lyla B Das

Publisher Resources

ISBN: 9781282663169