msg.s 270 B

123456789101112131415161718
  1. .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
  2. .define _msgget,_msgctl,_msgrcv,_msgsnd
  3. _msgget:
  4. pea (0)
  5. bra 1f
  6. _msgctl:
  7. pea (1)
  8. bra 1f
  9. _msgrcv:
  10. pea (2)
  11. bra 1f
  12. _msgsnd:
  13. pea (3)
  14. 1:
  15. move.l (4,sp),d0
  16. move.l (sp),(4,sp)
  17. move.l d0,(sp)
  18. jmp (_msgsys)