Advertisement
MichaelPetch

MASM expression TEXTEQU

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