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

  1. ; Sample code to illustrate various approaches to generating local
  2. ; symbols within REPT loops that don't seem to work with MASM 5.0.
  3. ;
  4.         dosseg
  5.         .model  small
  6.         .code
  7.  
  8. mac1    macro
  9.         rept    10
  10.         local   testlabel
  11.         jmp     testlabel
  12. testlabel:
  13.         endm
  14.         endm
  15.  
  16. mac2    macro
  17.         local   testlabel
  18.         rept    10
  19.         jmp     testlabel
  20. testlabel:
  21.         endm
  22.         endm
  23.  
  24. start:
  25.         mac1
  26.  
  27.         mac2
  28.  
  29.         rept    10
  30.         local   testlabel
  31.         jmp     testlabel
  32. testlabel:
  33.         endm
  34.  
  35.         end     start