• Tidak ada hasil yang ditemukan

ADDRESSING MODES OF 8085

N/A
N/A
Protected

Academic year: 2024

Membagikan "ADDRESSING MODES OF 8085"

Copied!
14
0
0

Teks penuh

(1)

SUBJECT: MICROPROCESSOR ARCHITECTURE AND PROGRAMMING

TOPIC : ADDRESSING MODES OF 8085 NAME OF TEACHER: SIMNA V J

ACADEMIC YEAR: 2020-2021

(2)

TOPIC:

ADDRESSING MODES OF 8085

(3)

Addressing modes of 8085

The different ways by which the address of the data to be operated upon may be

specified in an instruction is called addressing modes

(4)

5 types of addressing modes

Direct addressing

Register addressing

Register indirect addressing

Immediate addressing

Implicit addressing

(5)

Direct addressing

In this, the address of operand is explicitly specified with in the instruction itself

All such instructions are 3 bytes long with only exception with the IN and OUT

instructions each of which is 2 byte long

(6)

Example:

LDA 8000H : transfer the contents of memory location 8000H to accumalator

STA 8000H: Store the contents of

accumalator in memory location 8000H

(7)

Register addressing

The instruction specifies the register or register pair in which data is located

In 8085 instruction using register addressing are typically one byte instructions

(8)

Example:

MOV A,B : move the contents of register B to accumalator.

ADD B : Add contents of register B to Accumalator

(9)

Register indirect

The instruction specifies a register pair which contains the memory address where the data is located

The high order bits of address are in the first register and low order bits in the second

(10)

Example

LDAX B: Load the accumulator with

contents of a memory location, addressed by B,C register pair

(11)

Immediate addressing

In this the operand is specified in the instruction itself

Data will be either in 8 bit or in 16 bit .least significant bit first, most significant bit

second

(12)

Eg:

MVI A,62 : move data 62 to Accumalator

(13)

Implicit addressing

In this, op code does not specify operand

explicitly but, it is implied is known as implied addressing mode.

There are certain instructions that operate only on one operand. such instructions

assume that the operand is in accumulator

address specification

(14)

Eg

CMA :compliment the content of Accumulator

Referensi

Dokumen terkait

Program Counter ( PC ) atau Control Counter / instruction counter adalah register yang digunakan untuk menyimpan alamat ( address ) lokasi dari main memory yang

Disebut juga control counter atau instruction counter yaitu register yang digunakan untuk menyimpan alamat (address) lokasi dari main memory yang berisi instruksi

•To provide memory protection, add two registers that determine the range of legal addresses a program may address. • Base Register - holds smallest legal physical

Disebut juga control counter atau instruction counter yaitu register yang digunakan untuk menyimpan alamat (address) lokasi dari main memory yang berisi instruksi yang

In fact, a register has 32-­‐bit value so theoretically we can use indirect address of our machine to address the main memory as large as 16G bytes.. Now let us program with some data

FG+H 3 Calculate the number of times control unit refer to memory when it fetches and Apply 2 executes an indirect addressing mode instruction if the instruction is a computational

load data value using indirect address via address register which is somewhat similar to the code for using a pointer to get at a simple data element load address register from pointer

• The str is used to store register to memory using relative address op-code = 4 o Example: str R8, 34 This instruction will store the register R8 contents to the memory location M