dup2.s 198 B

1234567891011121314
  1. .define _dup2
  2. .sect .text
  3. .sect .rom
  4. .sect .data
  5. .sect .bss
  6. .sect .text
  7. .extern _dup2
  8. .sect .text
  9. _dup2: move.w #0x29,d0
  10. move.w 4(sp),a0
  11. move.w 6(sp),d1
  12. ext.l d1
  13. add.l #0x40,a0
  14. jmp call