_profil.s 177 B

12345678910111213
  1. .sect .text; .sect .rom; .sect .data; .sect .bss
  2. .define __profil
  3. .sect .text
  4. __profil:
  5. mov ax,44
  6. mov bx,sp
  7. add bx,2
  8. call syscal
  9. jae 1f
  10. mov (_errno),ax
  11. mov ax,-1
  12. 1:
  13. ret