printf.s 287 B

1234567891011121314151617
  1. | Warning: This routine has the attribute __ATTR_TIOS__!
  2. .xdef printf
  3. .text
  4. printf:
  5. movea.l 0xC8,%a0
  6. movea.l (%a0,0x14C),%a0 /* vcbprintf */
  7. lea (%a0,32),%a0
  8. movea.w (%a0),%a1
  9. pea (%sp,8)
  10. move.l (%sp,8),-(%sp)
  11. clr.l -(%sp)
  12. pea fputchar
  13. jsr (%a0.l,%a1)
  14. lea (%sp,16),%sp
  15. rts