Assembly Loop

Back to General discussions forum

anneenna     2020-05-07 02:59:07

This is driving me crazy. How to do a loop and jump from r0 to r15. I'm thinking about the following:

Special form of Conditional Jump is represented by ISZ (increment and skip if zero) instruction which is also a special form of increment on register:

ISZ increment register and jump to target address if register does not become zero This instruction may be helpful in creating loops running for given amount of iterations (like for-loop).

But I can't find any example online that would show how to implement this! Please help! Thanks.

Suman Dutta     2020-05-07 10:28:13

In python- in loop you can change the step size .I might be wrong

anneenna     2020-05-08 06:27:45

nono, I'm talking about problem 195 using Assembly language for i4004. I don't understand how to work the ISZ command which I believe to be keep of looping through address

Quandray     2020-05-08 15:58:48
User avatar

Have you seen http://e4004.szyc.org/iset.html ?

anneenna     2020-05-11 07:18:26

yes, I've seen that, but it doesn't really show the full syntax. I'm very unfamiliar with Assembly and I can't seem to find a solid example to show how to write that ISZ too. So it would be really helpful if someone can't help out

Please login and solve 5 problems to be able to post at forum