dvu4.s 322 B

1234567891011121314151617181920212223
  1. #include "em_abs.h"
  2. .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
  3. .define .dvu4
  4. ! $Id$
  5. .dvu4:
  6. movl (sp)+,r3
  7. movl (sp)+,r2
  8. blss I1
  9. movl (sp)+,r0
  10. clrl r1
  11. ediv r2,r0,r0,r1
  12. jmp (r3)
  13. I1:
  14. cmpl (sp)+,r2
  15. bgequ I2
  16. clrl r0
  17. jmp (r3)
  18. I2:
  19. movl $1,r0
  20. jmp (r3)