ror.s 312 B

1234567891011121314151617181920
  1. .sect .text; .sect .rom; .sect .data; .sect .bss
  2. .sect .text
  3. .define .ror
  4. ! #bytes in eax
  5. .ror:
  6. pop edx ! return address
  7. cmp eax,4
  8. jne 1f
  9. pop eax
  10. pop ecx
  11. ror eax,cl
  12. push eax
  13. jmp edx
  14. 1:
  15. .extern EODDZ
  16. .extern .trp
  17. mov eax,EODDZ
  18. push edx
  19. jmp .trp