home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 15 / CDACTUAL15.iso / cdactual / program / asm / PJGRAPH.ZIP / CHAP09.5 < prev    next >
Encoding:
Text File  |  1989-09-26  |  383 b   |  20 lines

  1. ; Solution to MASM 5.0 problem with local labels in REPT blocks.
  2. ; Brad Levy's solution (also offered by Michael Liebert).
  3. ;
  4.         dosseg
  5.         .model  small
  6.         .code
  7. mac1    macro
  8.         local   testlabel
  9.         jmp     testlabel
  10. testlabel:
  11.         endm
  12. mac2    macro
  13.         rept    10
  14.         mac1
  15.         endm
  16.         endm
  17.  
  18.         mac2
  19.  
  20.         end