Hi again -------- Original-Nachricht -------- > Datum: Wed, 25 Nov 2009 17:11:27 +0100 > Von: Peter Beisel <bei...@kbprueftechnik.frm.de> > An: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> > 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 :) > 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 -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal