Mov instruction

1,268 views 13 slides Apr 04, 2018
Slide 1
Slide 1 of 13
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
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

Here I am going to upload Instruction of 8085 Stimulator which is MOV Instruction.


Slide Content

Created by Pawan sharma (160130103100) Aman shah (160130103094) Hardik unagar (160130103112) MOV INSTRUCTION SET (8085 STIMULATOR)

What is Microprocessor??? Microprocessor: A silicon chip that contains a CPU. In the world of personal computers, the terms microprocessor and CPU are used interchangeably. A microprocessor (sometimes abbreviated µP) is a digital electronic component with miniaturized transistors on a single semiconductor integrated circuit (IC).

What is Microprocessor??? At the heart of all personal computers and most working stations sits a microprocessor. Microprocessors also control the logic of almost all digital devices, from clock radios to fuel-injection systems for automobiles. Three basic characteristics differentiate microprocessors: Instruction set: The set of instructions that the microprocessor can execute. Bandwidth : The number of bits processed in a single instruction. Clock speed: Given in megahertz (MHz), the clock speed determines how many instructions per second the processor can execute.

MOV Instruction (MOV Rd,Rs) MOV Rd,Rs MNEMONIC MOV Rd,Rs OPERATION Rd = Rs NO. OF BYTES 1 BYTE MACHINE CYCLE 1(OF) ALGORITHM Rd ← Rs FLAGS No flags are affected ADDRESING MODE Register addressing mode. T-STATES 4

MOV Instruction (MOV Rd,Rs) Description This instruction copies the data from source register Rs to the destination register Rd. The content of source register remain unchanged. Example: MOV B,C (This instruction will copy the contents of register C to register B)

MOV Instruction (MOV Rd,Rs) Program: Write an ALP to interchange value the 8-bit data stored in register B and C. MEMORY ADDRESS MNEMONIC NO. OF BYTES B000H MOV H,B 1 B001H MOV L,C 1 B002H MOV C,H 1 B003H MOC B,L 1

MOV Instruction (MOV Rd,Rs) Timing Diagram of MOV Rd,Rs

MOV Instruction (MOV R,M) MOV R,M MNEMONIC MOV R,M OPERATION R = M or R=(HL) NO. OF BYTES 1 BYTE MACHINE CYCLE 2(OF + MR) ALGORITHM R ← M FLAGS No flags are affected ADDRESING MODE Indirect addressing mode. T-STATES 4 + 3 = 7

MOV Instruction (MOV R,M) Description This instruction copies the data from memory M (pointed by HL pair) to the destination register R. The content of source register remain unchanged. Example: MOV B,M (This instruction will copy the contents of memory location pointed by HL pair to register B)

MOV Instruction (MOV R,M) Timing Diagram of MOV R,M

MOV Instruction (MOV M,R) MOV M,R MNEMONIC MOV M,R OPERATION M = R or (HL) = R NO. OF BYTES 1 BYTE MACHINE CYCLE 2(OF + MW) ALGORITHM M ← R FLAGS No flags are affected ADDRESING MODE Indirect addressing mode. T-STATES 4 + 3 = 7

MOV Instruction (MOV M,R) Description This instruction copies the data from register R to memory M (pointed by HL pair). The content of source register remain unchanged. Example: MOV M,B (This instruction will copy the contents of register B to memory location pointed by HL pair.)

MOV Instruction (MOV M,R) Timing Diagram of MOV M,R