Kaz Kylheku said:Yes; I believe this is a common calling convention on m68K. A pointer
return goes into A0, and an integer into D0.
Code which calls malloc without declaring it first really bites the dust.
What? That's exactly the sort of thing you exactly know for every darn
I mean, instead of knowing it will always be D0, for example, you need to be
aware that it might be D0 or A0.
(I would just have made it D0, but then if you did immediately want to use
the result as an address, it needs to be copied to an A register. In
general, an extra nuisance to deal with.)