edited by
837 views
0 votes
0 votes

Consider the following program for 8085

                         XRA A

            LXI B, 0007H

LOOP :      DCX B

            JNZ LOOP

The loop will be executed


a) 8 times

b) once

c) 7 times
d) infinite times

edited by

1 Answer

0 votes
0 votes
Let’s assume that XRA A instruction clears the register

LXI B is loads the register B with 0007

dec BX decrements BX seven times right until the loop becomes zero

why is the answer b ( once)

Related questions

0 votes
0 votes
3 answers
1
0 votes
0 votes
1 answer
2
sh!va asked Mar 1, 2017
1,268 views
An 8-bit microcontroller has an external RAM with the memory map from 8000H to 9FFFH.The number of bytes this RAM can store isa) 8193b) 8192c) 8191d) 8000
0 votes
0 votes
1 answer
3
sh!va asked Mar 1, 2017
427 views
A micro controller differs from a microprocessor in terms ofa) I/O interfaces and instruction decodingb) Memory configuration and I/O interfacesc) Data bus width and cloc...
0 votes
0 votes
1 answer
4
sh!va asked Mar 2, 2017
622 views
Digital signal processors use a computer architecture derived from(a) Harvard Architecture(b) Von-Neumann Architecture(c) Cray Architecture(d) None of the above