General Purpose Registers in 8086 Microprocessors.
Size: 2.21 MB
Language: en
Added: Apr 14, 2023
Slides: 10 pages
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