Jun 18, 2021 #1 A 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
Solution S S std_match Jun 18, 2021 The code doesn't make much sense, but I think the loop will be executed 34 (decimal) times. 0x34 - 0x12 = 0x22 = decimal 34
The code doesn't make much sense, but I think the loop will be executed 34 (decimal) times. 0x34 - 0x12 = 0x22 = decimal 34
Jun 18, 2021 #2 S std_match Advanced Member level 4 Joined Jul 9, 2010 Messages 1,304 Helped 463 Reputation 926 Reaction score 448 Trophy points 1,363 Location Sweden Activity points 10,170 The code doesn't make much sense, but I think the loop will be executed 34 (decimal) times. 0x34 - 0x12 = 0x22 = decimal 34 Upvote 0 Downvote Solution
The code doesn't make much sense, but I think the loop will be executed 34 (decimal) times. 0x34 - 0x12 = 0x22 = decimal 34
Jun 18, 2021 #3 KlausST Advanced Member level 7 Joined Apr 17, 2014 Messages 25,161 Helped 4,868 Reputation 9,757 Reaction score 5,537 Trophy points 1,393 Activity points 168,360 Hi, what about using a sheet of paper and a pencil? That´s how I´d do it. Klaus Upvote 0 Downvote