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.

How many time the loop will execute(in decimal)? [8085]

Status
Not open for further replies.

Atri Pal

Newbie
Joined
Apr 16, 2021
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
31
LXI H 1234H
LOOP: DCX H
MOV A H
SUB L
JNZ LOOP
 

The code doesn't make much sense, but I think the loop will be executed 34 (decimal) times.
0x34 - 0x12 = 0x22 = decimal 34
 

Solution
Hi,

what about using a sheet of paper and a pencil?
That´s how I´d do it.

Klaus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top