Escolar Documentos
Profissional Documentos
Cultura Documentos
CONTENTS
Interrupt Interrupts in 8086 CPUs Fetch-Execute cycle The operation of an interrupt sequence on 8086 Mouse features Pixel Mouse pointer Mickey Interrupt Vector Table(IVT) IVT Format Mouse functions
2
INTERRUPT
In computing an interrupt is an asynchronous signal indicating the
Interrupts in 8086
An 8086 Interrupt can come from any of three sources.
Hardware Interrupt
External interrupt applied to non-maskable interrupt NMI. Interrupt response cannot be disabled ( masked) by any program instruction. External interrupt applied to maskable interrupt INTR.
Software Interrupt
Execution of INT instruction.
Execute ISR
Interrupt? no
5
yes
IRET
3. The interrupt type N is sent to the Central Processor Unit (CPU) via the
Data bus from the hardware interface. 4. The contents of the flag registers are pushed onto the stack.
5. Both the interrupt (IF) and (TF) flags are cleared. This disables the INTR
pin and the trap or single-step feature.
Mouse Features
Pixel:
A pixel or pel (picture element) is a single point in a raster image, or
Mouse Features
Mouse pointer:
A mouse pointer, or a cursor, is a visible indicator displayed on a
computer screen.
By moving the mouse, the computer's user can move the mouse
where the user can press a button on the mouse to input text or execute a command.
10
Mouse Features
Mickey:
A unit of measure for movement of the mouse, approximately 1/200 of an
inch.
A mickey is a unit of measurement for the speed and
moves on the screen and how many centimeters you move the mouse on the mouse pad.
11
12
IVT Format
0000:0000 0000:0001
0000:0002
0000:0003 0000:0004 0000:0005 0000:0006 0000:0007
Segment
Given a Vector, where is the ISR address stored in memory ?
Offset Type 4
0000:03fc 0000:03fd 0000:03fe 0000:03ff
Segment
Mouse functions
We can access the cursor position and the button status with interrupt
33h.
The mouse driver has several functions by specifying the function
0- Resets the mouse and retrieves the mouse status. 1- Displays the mouse cursor 2- Hides the mouse cursor. 3- Retrieves the mouse cursor positioned the status of the mouse buttons.
14
or not.
int 33h mov ax,00 int 33h mov result,ax
Using int 33h is the necessary first step toward using the mouse.
At this point ,the mouse system is active and the cursor has appeared on the screen.
16
cursor moves over the screen,the mouse driver software reads the
17
33h service 3.
BX 0 1 2
This service 3, returns information in bx, dx, and cx. bx indicates which button(s) are down. This service also returns the current row and column of the mouse
19
THANK YOU
20