SlideShare a Scribd company logo
1 of 2
EX.NO. 9 STUDY OF ADDRESSING MODES
Date:
AIM:
To study about direct, indirect and immediate addressing modes in
TMS320C50 debugger.
APPARATUS REQUIRED:
1.System with TMS 320C50 debugger software
2.TMS 320C50 Kit.
ALGORITHM:
IMMEDIATE ADDRESSING MODE:
1. Initialize data pointer with 100H data.
2. Load the accumulator with first data.
3. Add the second data with accumulator content.
4. Store the accumulator content in specified address location.
DIRECT ADDRESSING MODE:
1. Initialize data pointer with 100H data.
2. Load the accumulator with first data, whose address is specified in the
instruction.
3. Add the accumulator content with second data, whose address is specified
in the instruction.
4. Store the accumulator content in specified address location.
IN-DIRECT ADDRESSING MODE:
1. Load the auxiliary register with address location of first data.
2. The auxiliary register (AR0) is modified indirectly as # symbol.
3. Load the second data into accumulator and perform addition operation.
4. Store the result.
PROGRAM:
;program for immediate addressing mode
.mmregs
.text
START:
LDP #100H
EC 56-Digital Signal Processing Lab
©Einstein College of Engineering
Page 41 of 81
LACC #1241H
ADD #1200H
SACL 2H
H: B H
;program for direct addressing mode
.mmregs
.text
START:
LDP #100H
LACC 0H
ADD 1H
SACL 2H
H: B H
;program for adding two numbers with indirect addressing mode.
.mmregs
.text
START:
LAR AR0,#8000H
MAR *,AR0
LACC *+,0 ;WITH ZERO SHIFT
ADD *+
SACL *+
H: B H
OUTPUT:

More Related Content

Similar to Matlab

Unit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.pptUnit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
IronMan665214
 
Last Rev. August 2014 Calibration and Temperature Measurement.docx
Last Rev. August 2014 Calibration and Temperature Measurement.docxLast Rev. August 2014 Calibration and Temperature Measurement.docx
Last Rev. August 2014 Calibration and Temperature Measurement.docx
smile790243
 

Similar to Matlab (20)

instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
Mp lab manual
Mp lab manualMp lab manual
Mp lab manual
 
3-addressingmodes-181203034235.pptx
3-addressingmodes-181203034235.pptx3-addressingmodes-181203034235.pptx
3-addressingmodes-181203034235.pptx
 
Cao
CaoCao
Cao
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Microprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. KawareMicroprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. Kaware
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Microprocessor square wave
Microprocessor square waveMicroprocessor square wave
Microprocessor square wave
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
module-3.pptx
module-3.pptxmodule-3.pptx
module-3.pptx
 
Addressing Modes.pptx
Addressing Modes.pptxAddressing Modes.pptx
Addressing Modes.pptx
 
BASIC COMPUTER ORGANIZATION AND DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGNBASIC COMPUTER ORGANIZATION AND DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGN
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.pptUnit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
Unit-2-Stack_basic_Input_Output-4-12-2022-8am.ppt
 
8085 addressing modes
8085 addressing modes8085 addressing modes
8085 addressing modes
 
ITEC582-Chapter 12.pptx
ITEC582-Chapter 12.pptxITEC582-Chapter 12.pptx
ITEC582-Chapter 12.pptx
 
Mp lab manual
Mp lab manualMp lab manual
Mp lab manual
 
Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!
 
lecture7-7_15936_addressing-modes.ppt
lecture7-7_15936_addressing-modes.pptlecture7-7_15936_addressing-modes.ppt
lecture7-7_15936_addressing-modes.ppt
 
Last Rev. August 2014 Calibration and Temperature Measurement.docx
Last Rev. August 2014 Calibration and Temperature Measurement.docxLast Rev. August 2014 Calibration and Temperature Measurement.docx
Last Rev. August 2014 Calibration and Temperature Measurement.docx
 

Matlab

  • 1. EX.NO. 9 STUDY OF ADDRESSING MODES Date: AIM: To study about direct, indirect and immediate addressing modes in TMS320C50 debugger. APPARATUS REQUIRED: 1.System with TMS 320C50 debugger software 2.TMS 320C50 Kit. ALGORITHM: IMMEDIATE ADDRESSING MODE: 1. Initialize data pointer with 100H data. 2. Load the accumulator with first data. 3. Add the second data with accumulator content. 4. Store the accumulator content in specified address location. DIRECT ADDRESSING MODE: 1. Initialize data pointer with 100H data. 2. Load the accumulator with first data, whose address is specified in the instruction. 3. Add the accumulator content with second data, whose address is specified in the instruction. 4. Store the accumulator content in specified address location. IN-DIRECT ADDRESSING MODE: 1. Load the auxiliary register with address location of first data. 2. The auxiliary register (AR0) is modified indirectly as # symbol. 3. Load the second data into accumulator and perform addition operation. 4. Store the result. PROGRAM: ;program for immediate addressing mode .mmregs .text START: LDP #100H EC 56-Digital Signal Processing Lab ©Einstein College of Engineering Page 41 of 81 LACC #1241H ADD #1200H SACL 2H H: B H ;program for direct addressing mode .mmregs .text START: LDP #100H LACC 0H ADD 1H
  • 2. SACL 2H H: B H ;program for adding two numbers with indirect addressing mode. .mmregs .text START: LAR AR0,#8000H MAR *,AR0 LACC *+,0 ;WITH ZERO SHIFT ADD *+ SACL *+ H: B H OUTPUT: