malloc_throw.s 385 B

123456789101112131415161718
  1. | Warning: This routine has the attribute __ATTR_TIOS__!
  2. | It is a simple wrapper for a TIOS function.
  3. .data
  4. .even
  5. .xdef malloc_throw,HeapAllocPtrThrow
  6. malloc_throw:
  7. HeapAllocPtrThrow:
  8. lea.l .L__finished+2,%a0
  9. move.l (%sp)+,(%a0)
  10. move.l 0xC8,%a0
  11. move.l (%a0,0xA2*4),%a0 /* HeapAllocPtr */
  12. jsr (%a0)
  13. move.l %a0,%d0
  14. jbne .L__finished
  15. .word 0xA000+670
  16. .L__finished:
  17. jmp.l 0:l