adi.s 307 B

123456789101112131415161718
  1. .sect .text; .sect .rom; .sect .data; .sect .bss
  2. .define .adi
  3. ! #bytes in ecx , top of stack in eax
  4. .sect .text
  5. .adi:
  6. pop ebx ! return address
  7. cmp ecx,4
  8. jne 9f
  9. pop ecx
  10. add eax,ecx
  11. jmp ebx
  12. 9:
  13. .extern EODDZ
  14. .extern .trp
  15. mov eax,EODDZ
  16. push ebx
  17. jmp .trp