MPU3 Short
MPU3 Short
Addressing mode
The different ways in which a processor can
access data are referred to as its addressing
modes. The data could be transferred using
MOV instruction in assembly language:
MOV Destination , Source
The Source could be immediate data, a specific register, or memory location. While the Destination could
be a specific register, or memory location.
Addressing Modes
Direct -8 9- Indirect
Port Addressing Port Addressing
MOV AL, 2Fh ;AL ¬ 2Fh (Put the number 2Fh in the AL register)
1
Microprocessor, Lecture#3a
3. Direct Addressing Mode
Data at any memory location is addressed “Directly” by a number.
Examples:
MOV AH, [0001] ;AH ¬ DS:[0001] (Copy one byte of the memory location at DS:[0001] into the AH register).
MOV SS:[0009], 04 ;SS:[0009] ¬ 04 (Put the number 4 in the memory byte addressed by SS:[0009])
MOV WORD PTR [BX], 2Fh ;DS:[BX] ¬ 2Fh & DS:[BX+1] ¬ 00h
Note: you can use Indirect IO port addressing even if the port address is an 8 bit.