Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

solve the following DSP program

Status
Not open for further replies.

srinivas.nrt

Junior Member level 1
Junior Member level 1
Joined
Aug 7, 2007
Messages
19
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,382
Assume the data memory starts at 1400h and program memory starts at 1000h

.memregs
.data
a0 .word 1234h
b0 .word 2345h
c0 .word 3456h
d0 .word 4567h
e0 .word 5678h

.text
ld #40,dp
ld #1Ch,asm
ld a0,t
mpyR 2,a
sth a,asm,6
.end

(a) what will be the content of accumulator after execution of instruction mpyR 2,a
in hexadecimal format.
(b) At which memory location the final result will be stored after execution of instruction sth a,asm,6
(c)What will be the final result that will be stored in the destination memory location after execution of instruction sth a,asm,6
 

srinivas.nrt said:
Assume the data memory starts at 1400h and program memory starts at 1000h

.memregs
.data
a0 .word 1234h
b0 .word 2345h
c0 .word 3456h
d0 .word 4567h
e0 .word 5678h

.text
ld #40,dp
ld #1Ch,asm
ld a0,t
mpyR 2,a
sth a,asm,6
.end

(a) what will be the content of accumulator after execution of instruction mpyR 2,a
in hexadecimal format.
(b) At which memory location the final result will be stored after execution of instruction sth a,asm,6
(c)What will be the final result that will be stored in the destination memory location after execution of instruction sth a,asm,6
hay it is not executing properly
 
sundarmeenakshi said:
srinivas.nrt said:
Assume the data memory starts at 1400h and program memory starts at 1000h

.memregs
.data
a0 .word 1234h
b0 .word 2345h
c0 .word 3456h
d0 .word 4567h
e0 .word 5678h

.text
ld #40,dp
ld #1Ch,asm
ld a0,t
mpyR 2,a
sth a,asm,6
.end

(a) what will be the content of accumulator after execution of instruction mpyR 2,a
in hexadecimal format.
(b) At which memory location the final result will be stored after execution of instruction sth a,asm,6
(c)What will be the final result that will be stored in the destination memory location after execution of instruction sth a,asm,6
hay it is not executing properly

where was the problem sir. i couldnt understood
 

srinivas.nrt said:
sundarmeenakshi said:
srinivas.nrt said:
Assume the data memory starts at 1400h and program memory starts at 1000h

.memregs
.data
a0 .word 1234h
b0 .word 2345h
c0 .word 3456h
d0 .word 4567h
e0 .word 5678h

.text
ld #40,dp
ld #1Ch,asm
ld a0,t
mpyR 2,a
sth a,asm,6
.end

(a) what will be the content of accumulator after execution of instruction mpyR 2,a
in hexadecimal format.
(b) At which memory location the final result will be stored after execution of instruction sth a,asm,6
(c)What will be the final result that will be stored in the destination memory location after execution of instruction sth a,asm,6
hay it is not executing properly

where was the problem sir. i couldnt understood
it is again assingin the value for PC
 
sundarmeenakshi said:
srinivas.nrt said:
sundarmeenakshi said:
srinivas.nrt said:
Assume the data memory starts at 1400h and program memory starts at 1000h

.memregs
.data
a0 .word 1234h
b0 .word 2345h
c0 .word 3456h
d0 .word 4567h
e0 .word 5678h

.text
ld #40,dp
ld #1Ch,asm
ld a0,t
mpyR 2,a
sth a,asm,6
.end

(a) what will be the content of accumulator after execution of instruction mpyR 2,a
in hexadecimal format.
(b) At which memory location the final result will be stored after execution of instruction sth a,asm,6
(c)What will be the final result that will be stored in the destination memory location after execution of instruction sth a,asm,6
hay it is not executing properly

where was the problem sir. i couldnt understood
it is again assingin the value for PC

In which statement it is assigning sir
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top