Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .686
- .MODEL flat, c
- includelib libcmt.lib
- includelib libvcruntime.lib
- includelib libucrt.lib
- includelib legacy_stdio_definitions.lib
- extern printf_s : PROC
- .DATA
- NUM DWORD ?
- .CODE
- MAIN PROC
- ENTER 32
- MOV EBX, 1
- OUTERLOOP:
- CMP EBX, 10
- JA END_OUTER
- MOV ECX 1
- INNER_LOOP:
- CMP ECX, EBX
- JA END_INNER
- MOV NUM, [ECX]
- PUSH NUM
- CALL printf_s
- INC ECX
- JMP INNER_LOOP
- END_INNER:
- INC EBX
- PUSH OFFSET NEWLINE
- END_OUTER:
- LEAVE
- RET
- MAIN END
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement