General Purpose Registers.pptx

1,004 views 10 slides Apr 14, 2023
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

General Purpose Registers in 8086 Microprocessors.


Slide Content

give some more General Purpose Registers in 8086 Microprocessor

R egisters in processors are quickly accessible locations where data or address may be stored. 8086 has 16 registers ( 4 General Purpose , 4 Pointer & Index, 6 Segment, 2 Status & Instruction). General Purpose Registers - store both data and addresses.  - All can be used for arithmetic and logic operations. Quick Introduction : Types of Registers in 8086

General Purpose Registers are present in Execution Unit of Microprocessor. Bus Interface Unit Execution Unit

General-purpose registers are used to store temporary data within the microprocessor. There are 4 general-purpose registers in the 8086 microprocessor : General Purpose Register

Extended Registers (32-bit): - present in 80386 (modified version of 8086) - additional registers that are added to provide more processing power & efficiency.

AX Register (Accumulator 16-bit) : Used for Arithmetic and Logical Operations Store results of operations Can be used for addition, subtraction, etc. operations . Example: MOV AX, 1000h ADD AX, 200h

BX Register (Base 16-bit) : Store memory address Store data values Conjugate with SI & DI to form effective address Mostly used for memory access operations Example: MOV AX, 5 MOV BX, 10 ADD AX, BX MOV [0x1234], AX

CX Register (Counter 16-bit) : Looping and counting operations Mostly used for array and string operation CX get decremented after each iteration E fficient way to keep track of the current position in the array or string. Example: MOV CX, 10 LOOP1: ---- // Some code to be repeated // ----- LOOP LOOP1

DX Register (Data 16-bit) : - Store data and perform AL operations - Conjugation with AX for multiplication/division and store result with MSB & LSB in DX&AX H old the I/O port number in input/output operations Example: MOV DX, 0x3F8 ; Set the I/O port for a serial port MOV AX, 'A' ; Set the data to send OUT DX, AL ; Send the data to the serial port

Thank You!!