br3092924.asm 289 B

1234567891011121314151617181920212223242526
  1. %define RNUM 0x10000 ; max of relocations in a section is 0xffff
  2. section .data1
  3. r1 dd RNUM
  4. section .data2
  5. r2 dd RNUM
  6. %macro x1 1
  7. mov eax, [r1 + %1]
  8. %endmacro
  9. %macro x2 1
  10. mov eax, [r2 + %1]
  11. %endmacro
  12. section .text1
  13. %assign i 0
  14. %rep RNUM
  15. x1 i
  16. x2 i
  17. %assign i i+1
  18. %endrep