C (47/304)

From:Allan Odgaard
Date:07 Aug 2000 at 21:13:02
Subject:OM_NEW (was: Re: BOOPSI again & again)

On 07-Aug-00, Ilkka Lehtoranta wrote:

> By the way... when programming MUI custom class in
> assembler I found out that I can't trash a register A2
> before calling DoSuperMethod(). I'm wondering why it
> is required to save A2 if there is no even instance
> data? Or is there something else?

A2 is the object pointer, but during OM_NEW it's AFAIK used to hold a
pointer to the class structure.
So if you trash this, the boopsi rootclass won't be able to create the
object (even though it could just use A0) -- I don't know why it's like
this, maybe Olaf could give us some background info?

However, not being able to trash A2 is the rule, not the exception ;-)

Regards Allan