Hi again
-------- Original-Nachricht --------
Show quoted text 9 lines
Datum: Wed, 25 Nov 2009 17:11:27 +0100
Von: Peter Beisel
An: FPC-Pascal users discussions
Betreff: Re: [fpc-pascal] Re: [fpc-devel] cpu
thank's for the hint. I could now fix unit cpu.pp
The problem was the calling convention
(all assambly routines assumed parameters on the stack - but now they
are in registers in fact)
Exactly. Has been written years ago.
But {$calling oldfpccall} didn't work (neither on top of the unit nor
in interface or implementation)
Worked here with fpc 2.2.4/go32v2, no difference whether I put {$calling oldfpccall} before the "unit" declaration, or between unit declaration and "interface" keyword or after the "interface" keyword.
As soon as it I put it in, the example programs started working. Without they did not :)
Show quoted text 8 lines
Jonas Maebe schrieb:
>
> On 25 Nov 2009, at 11:46, Schatzl Thomas wrote:
>
>> You will want to add a {$CALLING PASCAL} statement at the top of the
>> units - some assembly code assumes some (ancient) calling convention.
>
> I think that should be {$calling oldfpccall} instead.
True, thanks.
Hth,
Thomas