Skip to content

Conversation

EdmanCoding
Copy link
Contributor

Each iteration of the loop x3002 - x3008 R6 doubles beginning from 0000 0000 0000 0001 (next iteration - 0000 0000 0000 0001 + 0000 0000 0000 0001 = 0000 0000 0000 0010, then 0000 0000 0000 0100 and so on). Also each iteration of the loop x3002 - x3008 R0 incremented beginning from x0000. Branch in x3003 will start jump when R6 = 0000 0000 0010 0000 because at the end of the program R0 = 5. This mean that R5 = 0000 0000 0001 1111 because only in this condition the result of R5 AND R6 can be 0000 0000 0000 0000 when R0=5. Following doubles of R6 in x3005 (0000 0000 0100 0000, 0000 0000 1000 0000...) won't influent the result of R5 AND R6, it still will be 0. So in this case x3004 wouldn't be executed and R0 would stop increment at R0 = 5.

Each iteration of the loop x3002 - x3008 R6 doubles beginning from 0000 0000 0000 0001 (next iteration - 0000 0000 0000 0001 + 0000 0000 0000 0001 = 0000 0000 0000 0010, then 0000 0000 0000 0100 and so on). Also each iteration of the loop x3002 - x3008 R0 incremented beginning from x0000. Branch in x3003 will start jump when R6 = 0000 0000 0010 0000 because at the end of the program R0 = 5. This mean that R5 = 0000 0000 0001 1111 because only in this condition the result of R5 AND R6 can be 0000 0000 0000 0000 when R0=5. Following doubles of R6 in x3005 (0000 0000 0100 0000, 0000 0000 1000 0000...) won't influent the result of R5 AND R6, it still will be 0. So in this case x3004 wouldn't be executed and R0 would stop increment at R0 = 5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant