Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1

Size: px
Start display at page:

Download "Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1"

Transcription

1 Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1

2 High Level Language Compiler Assembly Language Assembler Machine Code Microprocessor Hardware 1/18/2011 2

3 8085A Instruction Set Data Transfer Instruction Move data between registers or between memory locations and registers. Includes moves, loads, stores and exchanges. Arithmetic Instruction Adds, Subtracts, Increments, Decrements data in registers or memory. Logic Instruction ANDs, ORs, XORs, compares, rotates or complements data in registers or between memory and registers. 1/18/2011 3

4 Branch/Jump Instruction Initiates conditional or unconditional jumps, calls, returns and restart. Stack, I/O and Machine Control Instruction Includes instructions for maintaining stack, reading from input port, writing to output port, setting and reading interrupt mask and clearing flags. 1/18/2011 4

5 Microprocessor System Block diagram 1/18/2011 5

6 Programming Model 0000H 8 bit 0001H 0002H A FLAG 0003H B C 0004H D E 0005H H L 0006H SP PC FFFDH CPU FFFEH FFFFH 8 bit 00H 01H 02H 03H 04H 05H 06H FDH FEH FFH 8 bit 1/18/ MEMORY I/O

7 Data Transfer IMMEDIATE DATA TRANSFER Move immediate 8 bit MVI reg, data8 ;data8 (reg) Load register pair immediate LXI rp,data16 ;data16 (rp) REGISTER DATA TRANSFER Move copy from source to destination MOV reg1, reg2 ;(reg2) (reg1) reg (Register) : A,B,C,D,E,H,L rp (Register Pair): BC,DE,HL & SP 1/18/2011 7

8 Example MVI A,10 MVI B, B MVI D,7FH ;A=0AH ;B=91H ;D=7FH LXI B,3 LXI H,2345H LXI D,100 LXI SP,3FF0H ;B=00H, C=03H ;H=23H, L=45H ;D=00H, E=64H ;SPH=3FH,SPL=F0H 1/18/2011 8

9 Example MVI MOV MOV MOV MOV MOV HLT B, 55H A, B C, A H, C L, A E, L 1/18/2011 9

10 DIRECT DATA TRANSFER Load Accumulator Direct LDA address16 Store Accumulator Direct STA address16 Load H and L Register Direct LHLD address16 Store H and L Register Direct SHLD address16 1/18/

11 Example 0000H LDA 3000H (3000H) (A) STA 2100H (A) (2100H) STORE A x 1 LOAD A y H H 2101H 2102H H H x 1 y 1 1/18/

12 Example LHLD 8000H (8000H) (L) (8000H + 1) (H) SHLD 3500H (L) (3500H) L H x 1 x H 0001H STORE H 3501H 3502H.. L y H LOAD.. (H) (3500H + 1) 8001H y 2 H y H x 1 x 2 y 1 1/18/

13 INDIRECT DATA TRANSFER Load Accumulator Indirect LDAX B ;pointer is BC register LDAX D ;pointer is DE register Store Accumulator Indirect STAX B ;pointer is BC register STAX D ;pointer is DE register 1/18/

14 INDIRECT DATA TRANSFER Move copy from memory to register indirect MOV reg, M ;pointer is HL register Move copy from register to memory indirect MOV M, reg ;pointer is HL register Move copy immediate data to memory indirect MVI M, data8 ;pointer is HL register 1/18/

15 Example ORG 0000H LXI B, 2020H MVI A, 88H STAX B INX B LDAX B LXI H, 3000H MOV D, M MOV M, A B C A 88H 20H 20H D H L 30H 00H 0000H 0001H 0002H 0003H 0004H 0005H 0006H 2020H 88H 2021H AAH 3000H FFH 1/18/

16 Instruction INX increment Register pair BC = 2021H 0000H 0001H 0002H 0003H 0004H 0005H 0006H 2020H 88H B C A AAH 20H 21H 2021H AAH D FFH H L 30H 00H 3000H AAH 1/18/

17 Transfer 10 byte data from memory location 3000h to memory location 3500h using LDA & STA 0000H LDA 3000H 0001H STA 3500H H 3001H x 1 x. LDA 3009H STA 3509H H H 3509H x 10 1/18/ x 2.. x 10 x 1....

18 Transfer 10 byte data from memory location 3000h to memory location 3500h using LDAX & STAX LOOP: MVI H,10 LXI B, 3000H LXI D, 3500H LDAX B STAX D INX B INX D DCR H JNZ LOOP HLT 0000H 0001H H 3001H H 1/18/ H H x 1 x 2.. x 10 x 1.. x 10

19 Arithmetic Operation ALU FLAG CPU REGISTER 1/18/

20 Arithmetic Instruction ADDITION Add immediate to Accumulator ADI data8 ;(A) + data8 (A) Add register to Accumulator ADD reg ;(A) + (reg) (A) Add immediate to Accumulator with Carry ACI data8 ;(A) + data8 + CY (A) Add register to Accumulator with Carry ADC reg ;(A) + (reg) + CY (A) Add register pair to HL register DAD rp ;(HL) + (rp) (HL) 1/18/

21 EXAMPLE ADI 99H ; A contains 88 (H) register A decimal constant decimal register A decimal S = 0 Bit D7 = 0 after addition Z = 0 The accumulator contains other than zero after addition AC = 1 There is a carry out of bit D3 to bit D4 during addition P = 1 The accumulator contains an even number of 1 s after addition CY = 1 There is an overflow as a result of the addition 1/18/

22 EXAMPLE ADC B ; A contains 88 (H) B contains 99 (H) ; CY =1 CY 1 register A register B register A Flag : S = 0, Z = 0, AC = 1, P = 1,CY = 1 1/18/

23 SUBTRACTION Subtract immediate from Accumulator SUI data8 ;(A) - data8 (A) Subtract register or memory from Accumulator SUB reg ;(A) - (reg) (A) Subtract immediate with Borrow SBI data8 ;(A) - data8 - CY (A) Subtract source and borrow from Accumulator SBB reg ;(A) - (reg) - CY (A) 1/18/

24 INCREMENT/DECREMENT Increment contents of Register/Memory by 1 INR reg ;(reg) + 1 (reg) Decrement contents of Register/Memory by 1 DCR reg ;(reg) - 1 (reg) Increment Register pair by 1 INX rp ;(rp) + 1 (rp) Decrement Register pair by 1 DCX rp ;(rp) - 1 (rp) Note : No Flag Effected for INX & DCX 1/18/

25 Logic Instruction AND AND Immediate With Accumulator ANI data8 (A) Λ Data8 (A) AND Register/Memory With Accumulator ANA reg (A) Λ (Reg) (A) 1/18/

26 OR OR Immediate With Accumulator ORI data8 (A) V Data8 (A) OR Register/Memory With Accumulator ORA reg (A) V (Reg) (A) 1/18/

27 EXCLUSIVE-OR EX-OR Immediate With Accumulator XRI data8 (A) Data8 (A) EX-OR Register/Memory With Accumulator XRA reg (A) (Reg) (A) 1/18/

28 Write an assembly language program to clear bit 7 and set bit 3 and 4 of memory location 3200h. ORG 2000H LDA 3200H ANI B ORI B STA 3200H RST 1 1/18/

29 COMPLEMENT THE ACCUMULATOR CMA ( A) (A) A COMPLEMENT THE CARRY STATUS CMC ( CY) (CY) 1/18/

30 COMPARE Compare Accumulator With Immediate Data CPI data8 (A) data8 Compare Accumulator With Register/Memory CMP reg (A) (reg) Note: Only flag affected 1/18/

31 Write an assembly program to find a largest value between two number at memory location 3000h and 3001h and store to memory location 3002h STORE: ORG 2000H LDA 3000H MOV B, A LDA 3001H CMP B JNC STORE MOV A, B STA 3002H RST 1 ;(A) (B) ;CY=0 IF (A) > (B) ;CY=1 IF (A) < (B) 1/18/

32 Rotate Rotate Accumulator Right Through Carry RAR (A 0 ) (CY) (A n+1 ) (A n ) (CY) (A 7 ) CY A7 A6 A5 A4 A3 A2 A1 A0 1/18/

33 Rotate Rotate Accumulator Left Through Carry RAL (A 7 ) (CY) (A n ) (A n+1 ) (CY) (A 0 ) CY A7 A6 A5 A4 A3 A2 A1 A0 1/18/

34 Rotate Rotate Accumulator Right RRC (A 0 ) (A 7 ) (A n+1 ) (A n ) (A 0 ) (CY) CY A7 A6 A5 A4 A3 A2 A1 A0 1/18/

35 Rotate Rotate Accumulator Left RLC (A 7 ) (A 0 ) (A n ) (A n+1 ) (A 7 ) (CY) CY A7 A6 A5 A4 A3 A2 A1 A0 1/18/

36 Branch Instruction Unconditional Jump JMP address16 (Byte 3) (Byte 2) (PC) Conditional Jump J Condition address16 If (Condition= true) (Byte 3) (Byte 2) (PC) 1/18/

37 Condition JZ Z=1 Jump if Zero flag SET JNZ Z=0 Jump if Zero flag NOT SET JC CY=1 Jump if Carry flag SET JNC CY=0 Jump if Carry flag NOT SET JM S=1 Jump if Sign flag SET JP S=0 Jump if Sign flag NOT SET JPE P=1 Jump if Parity flag SET JPO P=0 Jump if Parity flag NOT SET 1/18/

38 Example 1 Check Zero Flag LOOP: MVI B, 255 DCR B JNZ LOOP ;if Z == 0 then goto ;LOOP 1/18/

39 Example 2 Write a program based on the following algorithm. if contents of memory 2500h < 55h write 00h to 3000h if contents of memory 2500h > 55h write FFh to 3000h if contents of memory 2500h = 55h write 80h to 3000h LDA 2500H CPI 55H ;(A) 55H JNC CHK_EQUAL ;CY == 0? MVI A, 00H JMP STORE CHK_EQUAL: JZ EQUAL ;Z == 1? MVI A,FFH JMP STORE EQUAL: MVI A, 80H STORE: STA 3000H RST 1 1/18/

40 Unconditional Call Subroutine CALL address16 (PCH) ((SP) 1) (PCL) ((SP) 2) (SP) 2 (SP) (Byte 3)(Byte 2) (PC) 1/18/

41 Conditional Call Subroutine C Condition address16 If (Condition = True) (PCH) ((SP) 1) (PCL) ((SP) 2) (SP) 2 (SP) (Byte 3)(Byte 2) (PC) 1/18/

42 CZ Z=1 Call if Zero flag SET CNZ Z=0 Call if Zero flag NOT SET CC CY=1 Call if Carry flag SET CNC CY=0 Call if Carry flag NOT SET CM S=1 Call if Sign flag SET CP S=0 Call if Sign flag NOT SET CPE P=1 Call if Parity flag SET CPO P=0 Call if Parity flag NOT SET 1/18/

43 Return From Subroutine RET ((SP)) (PCL) ((SP) + 1) (PCH) (SP) + 2 (SP) 1/18/

44 Return From Subroutine (Conditional) R Condition If (Condition = True) ((SP)) (PCL) ((SP) + 1) (PCH) (SP) + 2 (SP) 1/18/

45 RZ Z=1 Return if Zero flag SET RNZ Z=0 Return if Zero flag NOT SET RC CY=1 Return if Carry flag SET RNC CY=0 Return if Carry flag NOT SET RM S=1 Return if Sign flag SET RP S=0 Return if Sign flag NOT SET RPE P=1 Return if Parity flag SET RPO P=0 Return if Parity flag NOT SET 1/18/

46 Example: Find the smallest value between memory content 2100h and 2101h and store at 2200h. Also find the smallest value between memory content 2110h and 2111h and store at 2201h LXI SP, 3FF0H ;init Stack Pointer LDA 2100H MOV B, A LDA 2101H CALL FIND_SMALL ;call subroutine STA 2200H LDA 2110H MOV B, A LDA 2111H CALL FIND_SMALL ;call subroutine STA 2201H RST 1 FIND_SMALL: CMP B ;Subroutine JC EXIT MOV A, B EXIT: RET END 1/18/

47 I/O,Stack, Machine Control Instruction Stack Operation Write The Content of Register Pair Onto The Stack PUSH rp (reg high) ((SP) 1) (reg low) ((SP) 2) (SP) 2 (SP) 1/18/

48 Write The Content of Accumulator & Flag Status Onto The Stack PUSH PSW (A) ((SP) 1) (Flag) ((SP) 2) (SP) 2 (SP) 1/18/

49 Retreive The Content of Register Pair From The Stack POP rp ((SP)) (reg low) ((SP) + 1) (reg high) (SP) + 2 (SP) 1/18/

50 Retreive The Content of Accumulator & Flag Status From The Stack POP PSW ((SP)) (Flag) ((SP) + 1) (A) (SP) + 2 (SP) 1/18/

51 STACK OPERATION Lecture 2 (Revision) 1/18/

52 How the Stack Works The stack is a reserved area of memory. It operates as a last-in first-out bank of registers. The memory locations, which constitute the stack, are used to store binary information temporarily during program execution. The stack can be located anywhere in read/write memory, but is usually defined such that it neither interferes with the program memory space or the data memory space. The start address of the stack is specified at the initialisation stage of the program by loading the 16-bit CPU register, called the stack pointer, with the desired address of the start of the stack. e.g LXI SP, data 16 1/18/

53 How the Stack Works Data from CPU register pairs are stored in the stack area of memory when the processor executes a push rp instruction. The contents of the program counter is automatically stored in the stack area of memory whenever the processor executes a call or restart (rst n) instruction. Data stored in the stack area of memory are returned to processor register pairs when the processor executes a pop rp instruction. Data is automatically transferred from the stack area of memory to the program counter whenever the processor executes a return (ret) instruction. 1/18/

54 Writing to the Stack To execute the instruction push HL assuming initial sp contents is 2099 H. The stack pointer is decremented by 1 (sp=2098) and the contents of H are written to this location. The stack pointer is decremented by 1 (sp=2097) and the contents of L are written to this location. Note : When data is written to the stack the stack pointer is first decremented and then the data is written 1/18/

55 Reading from the Stack To execute the instruction pop BC assuming initial sp contents is 2097 H. The contents of the memory location at the address specified by the contents of sp is moved to register C and sp is incremented. The contents of the memory location at the address specified by the contents of sp is moved to register B and sp is incremented. Note : When data is read from the stack the data is read first and then the stack pointer incremented. 1/18/

56 Example Write a program to exchange the contents of BC register with DE register Program 1 Program 2 MOV H,B MOV L,C MOV B,D MOV C,E MOV D,H MOV E,L PUSH B PUSH D POP B POP D 1/18/

57 Input/Output Operation Input From The Port IN Port_Address (port) (A) Output To Port OUT Port_Address (A) (Port) 1/18/

58 Example Input From The Port IN 80H STA 2100H ;Read from Port 80H ;Store to Memory Output To Port MVI A, 01H OUT 81H ;Write 01H to Port 81H 1/18/

59 Example: Blink LED at Port A 8255 LXI SP, 3FF0H MVI A, 80H OUT 83H REPEAT: MVI A,0 OUT 80H CALL DELAY MVI A,1 OUT 80H CALL DELAY JMP REPEAT ;init Stack Pointer ;Init 8255, all port as output ;Call subroutine ;Call subroutine DELAY: LOOP: MVI B, 0 ;Subroutine DCR B JNZ LOOP RET END 1/18/

60 Interrupt RIM SIM DI EI Read interrupt mask Set Interrupt mask Disable Interrupt Enable Interrupt (Detail discussion in interrupt topic) 1/18/

61 NEXT WEEK ASSEMBLY LANGUAGE PROGRAMMING 1/18/

INSTRUCTION SET OF 8085

INSTRUCTION SET OF 8085 INSTRUCTION SET OF 8085 Instruction Set of 8085 An instruction is a binary pattern designed inside a microprocessor to perform a specific function. The entire group of instructions that a microprocessor

More information

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples. (1) Explain instruction format and Opcode format of 8085 μp with example. OR With help of examples, explain the formation of opcodes of 8085 OR What is an instruction? List type of instruction based on

More information

8085 INSTRUCTION SET INSTRUCTION DETAILS

8085 INSTRUCTION SET INSTRUCTION DETAILS 8085 INSTRUCTION SET INSTRUCTION DETAILS DATA TRANSFER INSTRUCTIONS MOV Rd, Rs Copy from source to destination This instruction copies the contents of the source register Rs into the destination register

More information

Instruction Set Instruction set of 8085 can be classified in following groups: Data Transfer Instructions These instructions can perform data transfer operations between Registers of 8085 e.g. MOV 8085

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. QUESTION BANK DEPARTMENT: EEE SUB CODE: EE2324 YR/ SEM:III/ VI SUB NAME: MICROPROCESSORS & MICROCONTROLLERS UNIT 2- PROGRAMMING OF 8085 MICROPROCESSORS

More information

SAMPLE STUDY MATERIAL

SAMPLE STUDY MATERIAL Microprocessor-IN Postal Correspondence Course 1 SAMPLE STUDY MATERIAL Instrumentation Engineering IN Postal Correspondence Course GATE & PSUs Microprocessor Microprocessor-IN Postal Correspondence Course

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 Topics 1. Introduction 2. Programming model of 8085 3. Instruction set of 8085 4. Example Programs 5. Addressing modes of 8085 6. Instruction & Data Formats of 8085

More information

Assembly Language Programming of 8085

Assembly Language Programming of 8085 Assembly Language Programming of 8085 1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor understands

More information

م.م. ماجد عيدان. Introduction to microprocessor and microcomputer

م.م. ماجد عيدان. Introduction to microprocessor and microcomputer Lect. (1) Introduction to microprocessor and microcomputer Reference Books: 1. Ramesh S. Gaonkar, "Microprocessor Architecture, Programming and Application with the 8085". 2. Anokh Singh, A.K. Chhabra,Fundamentals

More information

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller UNIT I SYLLABUS INTRODUCTION TO 8085 Intel 8085 Microprocessor architecture signals Addressing modes Instruction classification Instruction set Timing diagram ALP format Programming 8085 8-bit and 16-bit

More information

EE309: Computer Organization, Architecture and MicroProcessors. sumantra/courses/up/up.html GND HIGH ORDER ADDRESS BUS

EE309: Computer Organization, Architecture and MicroProcessors.   sumantra/courses/up/up.html GND HIGH ORDER ADDRESS BUS CMP:8085 Primer-1 EE309: Computer Organization, rchitecture and MicroProcessors http://www.ee.iitb.ac.in/ sumantra/courses/up/up.html The 8085 Chip F LGS: S Z x x P x cy EXTERNLLY INITITED SIGNLS SERIL

More information

The 8085 Instruction Set

The 8085 Instruction Set 1 of 8 2/9/2011 5:14 PM The 8085 Instruction Set As I promised, in an earlier lesson, I am going to go through an in-depth explaination of ALL the 8085 instructions. Intel 88888 000 88888 5555555 A 8 8

More information

Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE

Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE 8085 -Internal Architecture - Addressing modes - Instruction set -Timing diagrams -Interrupts-Assembly language Programming 1. Internal Architecture of 8085 Microprocessor

More information

Its Assembly language programming

Its Assembly language programming 8085 Architecture & Its Assembly language programming Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati 8085 Era and Features 8085 Outline Block diagram (Data Path) Bus Structure Register Structure

More information

LABORATORY MANUAL. PROGRAMME: B.Tech SEMESTER /YEAR: 3rd year 5th Semester SUBJECT CODE: CS592 SUBJECT NAME: Microprocessor & Microcontroller Lab

LABORATORY MANUAL. PROGRAMME: B.Tech SEMESTER /YEAR: 3rd year 5th Semester SUBJECT CODE: CS592 SUBJECT NAME: Microprocessor & Microcontroller Lab LABORATORY MANUAL PROGRAMME: B.Tech SEMESTER /YEAR: 3rd year 5th Semester SUBJECT CODE: CS592 SUBJECT NAME: Microprocessor & Microcontroller Lab DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING INSTITUTE OF

More information

EXAMPLE PROGRAMS 8085

EXAMPLE PROGRAMS 8085 P! EXAMPLE PROGRAMS 8085 Statement:Multiply the 8-bit unsigned number in memory location 2200H by the 8-bit unsigned number in memory location 2201H. Store the 8 least significant bits of the result in

More information

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web:     Ph: Serial :. PT_EE-EC_A_Microprocessor_968 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: -452462 CLASS TEST 28-9 Subject : Microprocessors

More information

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER OBJECT: EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER To understand the structure and operating instruction of the microprocessor trainer. INTRODUCTION: The MKT 8085 is a single-board microcomputer,

More information

Practical Course File For

Practical Course File For Practical Course File For Microprocessor (IT 473) B.Tech (IT) IV-SEM Department of IT University Institute of Engineering & Technology Panjab University, Chandigarh Page 1 INTRODUCTION... 4 EXPERIMENT-1:

More information

COPYRIGHT IS NOT RESERVED BY AUTHORS. AUTHORS ARE NOT RESPONSIBLE FOR ANY LEGAL ISSUES ARISING OUT OF ANY COPYRIGHT DEMANDS

COPYRIGHT IS NOT RESERVED BY AUTHORS. AUTHORS ARE NOT RESPONSIBLE FOR ANY LEGAL ISSUES ARISING OUT OF ANY COPYRIGHT DEMANDS COPYRIGHT IS NOT RESERVED BY AUTHORS. AUTHORS ARE NOT RESPONSIBLE FOR ANY LEGAL ISSUES ARISING OUT OF ANY COPYRIGHT DEMANDS AND/OR REPRINT ISSUES CONTAINED IN THIS MATERIALS. THIS IS NOT MEANT FOR ANY

More information

G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering

G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering LECTURE NOTES MICROPROCESSORS AND INTERFACING PREPARED BY V.SHANTHI ASST PROFESSOR DEPT

More information

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit. LIST OF PROGRAMS Prg. Name of the Program No. 1 Study of Pin Diagram of 8085 2 Study of Architecture of 8085 3 Study of 8085 Kit 4 Reverse Order 5 Exchange of memory blocks 6 Absolute Difference 7 Even

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks) MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. UNIT I THE 8085 & 8086 MICROPROCESSORS PART A (2 Marks) 1. Give the significance of SIM and RIM instruction available in 8085. [NOV/DEC 2006] Instruction

More information

8085 Microprocessor Programs

8085 Microprocessor Programs 8085 Microprocessor Programs Courtesy : www.8085projects.info Rachit Agrawal 07-CE-52 Kalol Institute of Technology & Research Center PROGRAMS FOR 8085 MICROPROCESSOR PROGRAMS FOR LEARNERS 1. Store 8-bit

More information

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web:     Ph: Serial : 01. ND_EE_NW_Microprocessors_150718 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 011-45124612 CLASS TEST 2018-19 ELECTRICAL

More information

ELECTRICAL ENGINEERING

ELECTRICAL ENGINEERING Serial : 1. JP_EE_Microprocessor_130618 CLASS TEST Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 011-45124612 ELECTRICAL ENGINEERING

More information

MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33

MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33 MSMF GATE CENTRE Sub: MICROPROCESSORS Time: 50min Date:20-12-16 Marks:33 1. Which interrupt has highest priority in 8085 microprocessor? a) INTR b) RST 4.5 c) RST 6.5 d) RST 7.5 2. In 8085 microprocessor,

More information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microprocessor Subject Code: 17443 I m p o r t a n t I n s t r u c t i o n s t o e x a m i n e r s : 1) The answers should be examined by key words and

More information

2003 LXI H, 42F2H ; this instruction store 42F2 in to the HL pair POP H ; store data from top of the stack to HL pair

2003 LXI H, 42F2H ; this instruction store 42F2 in to the HL pair POP H ; store data from top of the stack to HL pair (1) What is stack? Explain stack related instruction with example OR Give function of stack. OR What is stack? Explain the stack operations using examples. The stack is a group of memory location in the

More information

UNIT 1 REFERENCE 1 PREPARED BY S.RAVINDRAKUMAR, LECT/ECE, CHETTINAD COLLEGE OF ENGG AND TECH, KARUR

UNIT 1 REFERENCE 1 PREPARED BY S.RAVINDRAKUMAR, LECT/ECE, CHETTINAD COLLEGE OF ENGG AND TECH, KARUR UNIT 1 REFERENCE 1 PROGRAMMING THE 8085 DEVELOPMENT OF PROGRAM A program is a sequence of instructions written to tell a computer to perform a specific function. The instructions are selected from the

More information

Subject Code: Model Answer Page No: /25

Subject Code: Model Answer Page No: /25 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate

More information

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT ELECTRONICS AND COMMUNICATION ENGINEERING CS 2252-MICROPROCESSOR AND MICROCONTROLLER COURSE NOTES UNIT I 8085 MICROPROCESSOR OBJECTIVES:.* Study

More information

Instruction set of 8085

Instruction set of 8085 Instruction set of 05 /23/2016 ptkarule@rediffmail.com 1 Instruction set of 05 Instruction set is divided into various groups depending on the operations performed: 1. Data transfer 2. rithmetic 3. Logical

More information

Computer Organization

Computer Organization Computer Organization (Instruction set Architecture & Assembly Language Programming) KR Chowdhary Professor & Head Email: kr.chowdhary@gmail.com webpage: krchowdhary.com Department of Computer Science

More information

EKT222 Miroprocessor Systems Lab 5

EKT222 Miroprocessor Systems Lab 5 LAB 5: Interrupts Objectives: 1) Ability to define interrupt in 8085 microprocessor 2) Ability to understanding the interrupt structure in the 8085 microprocessor 3) Ability to create programs using the

More information

Assembly language Programming

Assembly language Programming Assembly language Programming Applications With out the assembly language programming microprocessor can not works. Instructions are the patterns which is require by the microprocessor to done any task.

More information

Programming of 8085 microprocessor and 8051 micro controller Study material

Programming of 8085 microprocessor and 8051 micro controller Study material 8085 Demo Programs Now, let us take a look at some program demonstrations using the above instructions Adding Two 8-bit Numbers Write a program to add data at 3005H & 3006H memory location and store the

More information

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit

More information

GATE Exercises on Microprocessors

GATE Exercises on Microprocessors 1 GATE Exercises on Microprocessors Abstract This problem set has questions taken from GATE papers over the last twenty years. Teachers can use the problem set for courses tutorials. 1) The clock frequency

More information

Micro Processor & Micro Controllers

Micro Processor & Micro Controllers Micro Processor & Micro Controllers 1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. 2. What are the basic units of microprocessor?

More information

UNIT 18 PROGRAMMING MICROPROCESSORS

UNIT 18 PROGRAMMING MICROPROCESSORS UNIT 18 PROGRAMMING MICROPROCESSORS Structure 18.1 Introduction Objectives 18.2 Computer Languages 18.2.1 High Level Languages and Compilers 18.2.2 Assembly Language and the Assembler 18.3 Microprocessor

More information

SIR.C.R.R.COLLEGE OF ENGINEERING DEPT. OF ELECTRONICS AND INSTRUMENTATION ENGG. EIE-328: MICROPROCESSOR LABORATORY 3/4 B.E. EIE: SECOND SEMESTER

SIR.C.R.R.COLLEGE OF ENGINEERING DEPT. OF ELECTRONICS AND INSTRUMENTATION ENGG. EIE-328: MICROPROCESSOR LABORATORY 3/4 B.E. EIE: SECOND SEMESTER SIR.C.R.R.COLLEGE OF ENGINEERING DEPT. OF ELECTRONICS AND INSTRUMENTATION ENGG. EIE-328: MICROPROCESSOR LABORATORY 3/4 B.E. EIE: SECOND SEMESTER (AS PER UNIVERSITY SYLLABUS) LIST OF EXPERIMENTS 1. UNDERSTANDING

More information

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor Subject Name: Microprocessor and Microcontroller Year: 3 rd Year Subject Code: CS502 Semester: 5 th Module Day Assignment 1 Microprocessor

More information

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web:     Ph: Serial : LS2_EE_S_Microprocessors_2688 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: -452462 CLASS TEST 28-9 ELECTRICAL ENGINEERING

More information

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes

More information

ROEVER ENGINEERING COLLEGE

ROEVER ENGINEERING COLLEGE ROEVER ENGINEERING COLLEGE ELAMBALUR, PERAMBALUR- 621 212 DEPARTMENT OF INFORMATION TECHNOLOGY MICROPROCESSOR & MICROCONTROLLER 2 marks questions andanswers Unit I 1. Define microprocessor? A microprocessor

More information

1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions.

1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. Downloaded from www.books4career.blogspot.com 1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. 2. What are the basic units

More information

Contents 8051 Instruction Set BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter I : Control Transfer Instructions Lesson (a): Loop Lesson (b): Jump (i) Conditional Lesson (c): Lesson (d): Lesson (e):

More information

XII HSC - BOARD - MARCH

XII HSC - BOARD - MARCH Date: 17.03.2018 JEE MEDICAL-UG BOARDS KVPY NTSE OLYMPIADS XII HSC - BOARD - MARCH - 2018 COMPUTER SCIENCE - II ( D-9) QP + SOLUTIONS 1. (A) Select correct options and rewrite the following : (a) Intel

More information

The due date for submitting this assignment has passed. 1) How many times will the following loop be executed? Depends on the initial value of A

The due date for submitting this assignment has passed. 1) How many times will the following loop be executed? Depends on the initial value of A X reviewer2@nptel.iitm.ac.in Courses» and Microcontrollers Unit 4 - Week 3 Announcements Course Ask a Question Progress Mentor Course outline How to access the portal Week 3 Assignment The due date for

More information

CS2259-MICROPROCESSOR AND MICROCONTROLLER LABORATORY MANUAL

CS2259-MICROPROCESSOR AND MICROCONTROLLER LABORATORY MANUAL CS2259-MICROPROCESSOR AND MICROCONTROLLER LABORATORY LABORATORY MANUAL FOR IV SEMESTER B.TECH / IT ACADEMIC YEAR: 2012-2013 (FOR PRIVATE CIRCULATION ONLY) ANNA UNIVERSITY, CHENNAI. NAME REG.NO BATCH :

More information

INDEX. 1 Study of intel 8085 micropeocessor kit. 2 Program to find addition of two 8 bit no. 3 Program to find subtraction of two 8 bit no.

INDEX. 1 Study of intel 8085 micropeocessor kit. 2 Program to find addition of two 8 bit no. 3 Program to find subtraction of two 8 bit no. INDEX PROGRAM NO. NAME OF THE PROGRAM 1 Study of intel 8085 micropeocessor kit SIGNATURE 2 Program to find addition of two 8 bit no. 3 Program to find subtraction of two 8 bit no. 4 Program to find 1 s

More information

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK Subject Code : EC307 Subject Name : Microprocessor and Interfacing Year & Sem : III Year, V Sem

More information

CS521 CSE IITG 11/23/2012

CS521 CSE IITG 11/23/2012 CS521 CSE IITG 11/23/212 http://jatinga.iitg.ernet.in/~asahu/cs523/ Course Contents Text and Reference Books All lecture slides Summery of each class with references Other information Simulators, Benchmarks,

More information

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman Microprocessors 1 The 8051 Instruction Set Microprocessors 1 1 Instruction Groups The 8051 has 255 instructions Every 8-bit opcode from 00 to FF is used except for A5. The instructions are grouped into

More information

PROGRAMMING BOOK FOR MTK85SE, 8085 MICROPROCESSOR TRAINING KIT

PROGRAMMING BOOK FOR MTK85SE, 8085 MICROPROCESSOR TRAINING KIT PROGRAMMING BOOK FOR MTKSE, 0 MICROPROCESSOR TRAINING KIT Wichit Sirichote 0 Rev.0 April, 0 CONTENTS Program : Writing data to output port... Program : Binary number counting... Program : LED running...

More information

Matrix Multiplication in 8085

Matrix Multiplication in 8085 Matrix Multiplication in 8085 Semester Project for B.Tech. (Computer Science & Engineering) by Praneeth A S (UG20110023) & Rohit Yeravothula (UG201110039) Project Guide: Dr. K R Chowdhary Head of Department,

More information

MICROPROCESSOR AND MICROCONTROLLER

MICROPROCESSOR AND MICROCONTROLLER A Course Material on By Mr. C.JAGADEESHWARAN ASSISTANT PROFESSOR DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING SASURIE COLLEGE OF ENGINEERING VIJAYAMANGALAM 638 56 QUALITY CERTIFICATE This is to

More information

The advantages of registers over memory locations are as follows:

The advantages of registers over memory locations are as follows: Q.2 a. In a microprocessor, what is the use of a register? What are the advantages & disadvantages of using registers over a memory location? What is the speciality of register A (accumulator) over other

More information

1 = Enable SOD 0 = Disable SOD. Serial Output Data. Fig.12.9 SIM Instruction Format

1 = Enable SOD 0 = Disable SOD. Serial Output Data. Fig.12.9 SIM Instruction Format Lecture-67 The 8085 Serial I/O Lines: SOD & SID The 8085 microprocessor has two pins specially designed for software control serial I/O. One is called SOD (serial output data) and the other is called SID

More information

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUN 2015

DE60/DC68 MICROPROCESSORS & MICROCONTROLLERS JUN 2015 Q.2 a. Draw block diagram schematic of 8085 bus structure. Explain buses/ communication lines used by 8085. (6) 8085 Bus organization structure: 8085 MPU and peripheral devices communicate through three

More information

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU 534007 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER Faculty: B.Homer Benny (Section- A

More information

MGM S Jawaharlal Nehru Engineering College

MGM S Jawaharlal Nehru Engineering College MGM S Jawaharlal Nehru Engineering College Laboratory Manual MICROPROCESSOR AND INTERFACING TECHNIQUES For TE (EEP) Prof.J.R.Rana Author JNEC, Aurangabad PREFACE It is my great pleasure to present this

More information

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly. Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale

More information

Microcontroller Intel [Instruction Set]

Microcontroller Intel [Instruction Set] Microcontroller Intel 8051 [Instruction Set] Structure of Assembly Language [ label: ] mnemonic [operands] [ ;comment ] Example: MOV R1, #25H ; load data 25H into R1 2 8051 Assembly Language Registers

More information

MICROPROCESSOR BASICS AND RELATED TERMS

MICROPROCESSOR BASICS AND RELATED TERMS MICROPROCESSOR BASICS AND RELATED TERMS Microprocessor: Programmable integrated device that has computing ability and decision making capacity. It is the CPU of computer. A multipurpose, programmable,

More information

8051 Overview and Instruction Set

8051 Overview and Instruction Set 8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different

More information

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

1. What is Microprocessor? Give the power supply & clock frequency of 8085? 1. What is Microprocessor? Give the power supply & clock frequency of 8085? A microprocessor is a multipurpose, programmable logic device that reads binary instructions from a storage device called memory

More information

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit

More information

SN8F5000 Family Instruction Set

SN8F5000 Family Instruction Set SONiX Technology Co., Ltd. 8051-based Microcontroller 1 Overview SN8F5000 is 8051 Flash Type microcontroller supports comprehensive assembly instructions and which are fully compatible with standard 8051.

More information

Microprocessor Micro Syllabus BSc. CSIT, IOST, TU. Microprocessor

Microprocessor Micro Syllabus BSc. CSIT, IOST, TU. Microprocessor Microprocessor Micro Syllabus BSc. CSIT, IOST, TU Microprocessor Course Title: Microprocessor Full Marks: 60 + 20 + 20 Course No: CSC162 Pass Marks: 24 + 8 + 8 Nature of the Course: Theory + Lab Credit

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller EE4380 Fall 2001 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Architecture Programmer s View Register Set Instruction Set Memory

More information

Valliammai Engineering College

Valliammai Engineering College Valliammai Engineering College SRM Nagar, Kattankulathur - 603203 Department of Electrical and Electronics Engineering EE6612 Microprocessors and Microcontrollers Laboratory LAB MANUAL VI Semester - Electrical

More information

Q. P. Code : b. Draw and explain the block dig of a computer with microprocessor as CPU.

Q. P. Code : b. Draw and explain the block dig of a computer with microprocessor as CPU. Q. P. Code : 08235 (2½ Hours) [Total Marks: 75] N. B.: (1) All questions are compulsory. (2) Make suitable assumptions wherever necessary and state the assumptions made. (3) Answers to the same question

More information

Machine Cycle- 2 or (Machine Cycle-1 of next instruction):

Machine Cycle- 2 or (Machine Cycle-1 of next instruction): Lecture-29 17. CMA: (Complement accumulator) This is an ALP statement. The meaning of the instruction is Complement the content of accumulator bit by bit and store the result back into the accumulator.

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.

More information

PERIPHERAL INTERFACING Rev. 1.0

PERIPHERAL INTERFACING Rev. 1.0 This work is licensed under the Creative Commons Attribution-NonCommercial-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/in/deed.en

More information

Ex: Write a piece of code that transfers a block of 256 bytes stored at locations starting at 34000H to locations starting at 36000H. Ans.

Ex: Write a piece of code that transfers a block of 256 bytes stored at locations starting at 34000H to locations starting at 36000H. Ans. INSTRUCTOR: ABDULMUTTALIB A H ALDOURI Conditional Jump Cond Unsigned Signed = JE : Jump Equal JE : Jump Equal ZF = 1 JZ : Jump Zero JZ : Jump Zero ZF = 1 JNZ : Jump Not Zero JNZ : Jump Not Zero ZF = 0

More information

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MICROCONTROLLERS AND APPLICATIONS 1 Module 2 Module-2 Contents: Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MEMORY

More information

1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M. 2 PUSH/ POP R16/M16/SR/F 2 x ( ) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M

1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M. 2 PUSH/ POP R16/M16/SR/F 2 x ( ) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M Increment R16 1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M 4 x (16+48) = 256 opcodes 2 PUSH/ POP R16/M16/SR/F 2 x (8+24+4+1) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M 4 x (16+48) = 256 opcodes INC

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.

More information

Machine Cycle- 1: OFMC: Status signals IO/M=0, S 1 =1, S 0 =1

Machine Cycle- 1: OFMC: Status signals IO/M=0, S 1 =1, S 0 =1 Lecture-31 6. Rcond: This is a conditional return statement. It is also a part of the subroutine. Whenever this instruction is executed, μp checks the conditional flags. If the condition is found true

More information

(2½ Hours) [Total Marks: 75]

(2½ Hours) [Total Marks: 75] (2½ Hours) [Total Marks: 75] N. B.: (1) All questions are compulsory. (2) Make suitable assumptions wherever necessary and state the assumptions made. (3) Answers to the same question must be written together.

More information

B.C.A 2017 MICROPROCESSOR AND ASSEMBLY LANGUAGE MODULE SPECIFICATION SHEET. Course Outline

B.C.A 2017 MICROPROCESSOR AND ASSEMBLY LANGUAGE MODULE SPECIFICATION SHEET. Course Outline B.C.A 2017 MICROPROCESSOR AND ASSEMBLY LANGUAGE Course Outline MODULE SPECIFICATION SHEET The objective of the course is to expose to the students to the architecture and instruction set of typical 8-bit

More information

It is possible to define a number using a character or multiple numbers (see instruction DB) by using a string.

It is possible to define a number using a character or multiple numbers (see instruction DB) by using a string. 1 od 5 17. 12. 2017 23:53 (https://github.com/schweigi/assembler-simulator) Introduction This simulator provides a simplified assembler syntax (based on NASM (http://www.nasm.us)) and is simulating a x86

More information

Lecture-12 INTERNAL ARCHITECTURE OF INTEL 8085: The Functional Block Diagram Of 8085 Is Shown In Fig 16.

Lecture-12 INTERNAL ARCHITECTURE OF INTEL 8085: The Functional Block Diagram Of 8085 Is Shown In Fig 16. Lecture-12 INTERNAL ARCHITECTURE OF INTEL 8085: The Functional Block Diagram Of 8085 Is Shown In Fig 16. It consists of five essential blocks. (1) ARITHMEDIC LOGIC SECTION (2) REGISTER SECTION (3) THE

More information

Lecture-19 MICROPROCESSOR INSTRUCTIONN SET: Each subsystem in a microprocessor based system the memory, the microprocessor and the input and output

Lecture-19 MICROPROCESSOR INSTRUCTIONN SET: Each subsystem in a microprocessor based system the memory, the microprocessor and the input and output Lecture-19 MICROPROCESSOR INSTRUCTIONN SET: Each subsystem in a microprocessor based system the memory, the microprocessor and the input and output devices- can be thought of in terms of the registers

More information

Assembly Language programming (3)

Assembly Language programming (3) EEE3410 Microcontroller Applications LABORATORY Experiment 3 Assembly Language programming (3) Name Class Date Class No. Marks Conditional Program Branching and Subroutine Call in 8051 Objectives To learn

More information

PERIPHERAL INTERFACING Rev. 1.0

PERIPHERAL INTERFACING Rev. 1.0 This work is licensed under the Creative Commons Attribution-NonCommercial-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/in/deed.en

More information

Chapter Introduction Chapter 1. a) Address translation b) Protection c) Program relocation. type's "««"** ***** ** various

Chapter Introduction Chapter 1. a) Address translation b) Protection c) Program relocation. type's ««** ***** ** various 72 Introduction Chapter 1 a) Address translation b) Protection c) Program relocation Chapter 2 type's "««"** ***** ** various 1.17 Discuss the main features' of typical coprocessors. o ' rhc diffcrcncc

More information

Counters & Time Delays. Microprocessors & Interfacing 1

Counters & Time Delays. Microprocessors & Interfacing 1 Counters & Time Delays Microprocessors & Interfacing 1 Counters A loop counter is set up by loading a register with a certain value Then using the DCR (to decrement) and INR (to increment) the contents

More information

Instruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts

Instruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts Lecture 4 Instruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts One part is the task to be performed, called operation code or opcode in

More information

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS

AE66/AC66/AT66/ AE108/AC108/AT108 MICROPROCESSORS & MICROCONTROLLERS Q.2 a. Draw pin diagram and signal group diagram of 8085 microprocessor. (8) b. List out the various categories of the 8085 instructions. Give examples of the instructions for each group. (8) Data transfer

More information

ELEG3924 Microprocessor

ELEG3924 Microprocessor Department of Electrical Engineering University of Arkansas ELEG3924 Microprocessor Ch.3 Jump, Loop, and Call Dr. Jing Yang jingyang@uark.edu 1 OUTLINE Loop and Jump instructions Call instructions Time

More information

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING CHAPTER 2 8051 ASSEMBLY LANGUAGE PROGRAMMING Registers Register are used to store information temporarily: A byte of data to be processed An address pointing to the data to be fetched The vast majority

More information

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND)

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND) 1. (a) Pin configuration of 8085 X 1 X 2 CLKOUT TRAP RST 7.5 RST 6.5 RST 5.5 INTR INTA SID SOD RESET IN RESET OUT T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution

More information

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING LAB MANUAL. Academic Year: ODD SEMESTER

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING LAB MANUAL. Academic Year: ODD SEMESTER DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING LAB MANUAL Academic Year: 2015-16 ODD SEMESTER Programme (UG/PG) : UG-B.Tech Semester : 03 Course Code Course Title :CS1033 : MICROPROCESSOR & INTERFACING

More information

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI EE2354- MICROPROCESSORS AND MICROCONTROLLER UNIT I 8085 and 8086 PROCESSOR PART A 1. Define

More information

8051 Microcontrollers

8051 Microcontrollers 8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 15, 2016 8051 INSTRUCTIONS JUMP, LOOP AND CALL INSTRUCTIONS 8051 INSTRUCTIONS Repeating a sequence of instructions

More information

ET355 Microprocessors Thursday 6:00 pm 10:20 pm

ET355 Microprocessors Thursday 6:00 pm 10:20 pm ITT Technical Institute ET355 Microprocessors Thursday 6:00 pm 10:20 pm Unit 4 Chapter 6, pp. 139-174 Chapter 7, pp. 181-188 Unit 4 Objectives Lecture: BCD Programming Examples of the 805x Microprocessor

More information