ior.s 238 B

123456789101112131415161718
  1. .sect .text; .sect .rom; .sect .data; .sect .bss
  2. .sect .text
  3. .define .ior
  4. ! #bytes in ecx
  5. .ior:
  6. pop ebx ! return address
  7. mov edx,edi
  8. mov edi,esp
  9. add edi,ecx
  10. sar ecx,2
  11. 1:
  12. pop eax
  13. or eax,(edi)
  14. stos
  15. loop 1b
  16. mov edi,edx
  17. jmp ebx