September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
21
Task/Loops-For/X86-Assembly/loops-for.x86
Normal file
21
Task/Loops-For/X86-Assembly/loops-for.x86
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
loops: mov bx, 1 ; outer loop counter
|
||||
|
||||
outerloop: mov cx, bx ; inner loop counter
|
||||
mov dl, 42 ; '*' character
|
||||
|
||||
innerloop: mov ah, 6
|
||||
int 21h ; print
|
||||
|
||||
dec cx
|
||||
jcxz innerdone
|
||||
jmp innerloop
|
||||
|
||||
innerdone: mov dl, 10 ; newline
|
||||
mov ah, 6
|
||||
int 21h
|
||||
|
||||
inc bx
|
||||
cmp bx, 6
|
||||
jne outerloop
|
||||
|
||||
ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue