Advertisement
kerelius

Untitled

Feb 6th, 2019
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. .686
  2. .MODEL flat, c
  3.  
  4. includelib libcmt.lib
  5. includelib libvcruntime.lib
  6. includelib libucrt.lib
  7. includelib legacy_stdio_definitions.lib
  8.  
  9. extern printf_s : PROC
  10.  
  11. .DATA
  12. NUM DWORD ?
  13.  
  14.  
  15.  
  16. .CODE
  17. MAIN PROC
  18. ENTER 32
  19. MOV EBX, 1
  20. OUTERLOOP:
  21. CMP EBX, 10
  22. JA END_OUTER
  23. MOV ECX 1
  24. INNER_LOOP:
  25. CMP ECX, EBX
  26. JA END_INNER
  27. MOV NUM, [ECX]
  28. PUSH NUM
  29. CALL printf_s
  30. INC ECX
  31. JMP INNER_LOOP
  32. END_INNER:
  33. INC EBX
  34. PUSH OFFSET NEWLINE
  35. END_OUTER:
  36. LEAVE
  37. RET
  38. MAIN END
  39. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement