add loop.s example, and correct jgt not jgte
This commit is contained in:
parent
ee7b3d36d0
commit
35f8c4039a
|
@ -125,7 +125,7 @@ now. Here is a code snippet of a loop:
|
|||
.top
|
||||
sub $1,%dx
|
||||
test $0,%dx
|
||||
jgte .top
|
||||
jgt .top
|
||||
halt
|
||||
```sh
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
.main
|
||||
.top
|
||||
sub $1,%dx
|
||||
test $0,%dx
|
||||
jgt .top
|
||||
halt
|
||||
|
Loading…
Reference in New Issue