Simple Assembly Language Question

Daniel A-S

Member
Hi.
I'm doing A-level computing and I'm having difficulty getting my head around this assembly language.

This is what my editor looks like:
http://homepage.ntlworld.com/bas/assem.JPG

I want to be able to do loops. I've covered the basic arithmetic instructions, now it's just down to logical.

What I've written at the moment is something that keeps on adding '1' into register 0. I want to keep on looping it until it reaches something like 1000, and once it has, the program reaches the rts command and finishes.

Can anyone help me with this?
Thanks.
 
x86?
Code:
Loop:
<code>
JL Loop
Make sure you have the right stuff in the right registers or it'll not work.
 
Back
Top