Skip to content

Instantly share code, notes, and snippets.

@RyuaNerin
Created December 7, 2017 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyuaNerin/da65c9f8c73e0a13feba1448b0110ae6 to your computer and use it in GitHub Desktop.
Save RyuaNerin/da65c9f8c73e0a13feba1448b0110ae6 to your computer and use it in GitHub Desktop.
include Irvine32.inc
.data
n1 DWORD 1
n2 DWORD 1
.code
main PROC
mov ecx, 9
F1:
push ecx
inc n1
mov n2, 0
mov ecx, 9
F2:
inc n2
mov ecx, n1
call WriteDec
mov al, '*'
call WriteChar
mov ecx, n2
call WriteDec
mov al, '='
call WriteChar
mov ecx, n1
imul n2
call WriteDec
call CrLf
loop F2
call CrLf
pop ecx
loop F1
exit
main endp
end main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment