• recategorized by
266 views
0 0 votes

An $8085$ assembly language program is given below

$\begin{array}{ll} & \text{ MVIC, 03H } \\ & \text { LXIH, 2000H } \\ \text { LOOP : } & \text { MOV A, M } \\ & \text { DRCC } \\ & \text { INX H } \\ & \text { MOV B, M, } \\ & \text { CMP B } \\ & \text { JNC LOOP2 } \\ & \text { MOV A, B } \\ \text { LOOP2 : } & \text { DCR C } \\ & \text { JNZ LOOP1 } \\ & \text { STA 210OH } \\ & \text { HLT }\end{array}$

Contents of the memory locations $2000 \mathrm{H}$ to $2002$ $\mathrm{H}$ are
$2000: 18 \mathrm{H} \quad 2001: 10 \mathrm{H}, 2002: 2 \mathrm{BH}$.

  1. What does the above program do?
  2. At the end of the program, what will be

 

  1. the contents of the registers $\mathrm{A}, \mathrm{B}, \mathrm{C}, \mathrm{H}$ and $L$ ?
  2. the condition of the carry and zero flags?
  3. the contents of the memory locations $2000$ $\mathrm{H}, 2001 \mathrm{H}, 2002 \mathrm{H}$, and $2100 \mathrm{H}$.

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
0 0 answers
297
297 views
admin asked Sep 20, 2022
297 views
The total number of memory accesses involved (inclusive of the $op$ – code fetch) when an $8085$ processor executes the instruction $\text{LDA}$ $2003$ is$1$$2$$3$$4$
0 0 votes
0 0 answers
270
270 views
admin asked Sep 29, 2022
270 views
If $\text{CS}=\text{A}_{15} \; \text{ A}_{14} \; \text{A}_{13}$ is used as the chip select logic of a $4 \; \text{K RAM}$ in an $8085$ system, then its memory range will ...
0 0 votes
0 0 answers
263
263 views
admin asked Sep 27, 2022
263 views
Consider the following assembly language program.$\begin{array}{rll} \text { MVI } & \text { B,87H } \\ \text { MOV } & \text { A, B } \\ \text { START : JMP } & \text { ...
0 0 votes
0 0 answers
384
384 views
admin asked Oct 17, 2022
384 views
Statement for Linked Answer Questions $81 a$ and $81 b$:Consider an $8085$ microprocessor systemIf in addition following code exists from $019 \mathrm{H}$ onwards,$\text{...

Add Synced Question

×