Advertisement
MichaelPetch

MASM CATSTR Example

Oct 2nd, 2022 (edited)
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. .code
  2. ix = 0
  3. rept 2
  4. @CatStr(<foo_>, %ix, < proc>)
  5. mov rax, ix
  6. ret
  7. @CatStr(<foo_>, %ix, < endp>)
  8. ix = ix + 1
  9. endm
  10.  
  11. mainCRTStartup proc
  12. ; call the generated procs
  13. call foo_0
  14. call foo_1
  15. mainCRTStartup endp
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement