srinivas.nrt
Junior Member level 1
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
.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