WarpUp (32/55)

From:Almos Rajnai
Date:17 Jul 2000 at 08:25:12
Subject:Re: Run68k yet a trouble

Hello there!

On 16 Jul 00, at 19:21, Frank Wille wrote:

> The 68k-part is ok, although I would place the variables you
> want to access from the PPC-side, like _PowerPCBase, into the
> TOC section:

Why should I place into the .tocd section? BTW to avoid cache
problems, "dcb.b 32,0" would be better at the end of a section, the
beginning should be cache-aligned. (At least this seems obvious to
me, but please correct my words.)

> By doing so you can access _PowerPCBase via A4 on the 68k-side
> and directly via R2 (rtoc) on the PPC-side.

All data sections can be accessed via rtoc, because they are merged
together. (It is working, I tested it.)

> So when Run68k() saves CR, LR or whatever in this stack frame, it
> will destroy your PPCArgs structure.

This caused the trouble. Finally I found out, thank to fd2libWOS...
:) Should I initialize somehow this stack frame? Code generated by
fd2libWOS does no init at all. (?)

> This function will never return.

That was true, recently I found this bug too.

> > I use pasm from VBCC package and phxass.
>
> This is definitely not the problem. :)

I know, I know... Great job Frank! ;)
Local labels can be used somehow in pasm? I really miss this function!
And sometimes pasm does not stop when it found an error in a macro.
(Question appears, but compiling is running forward.)

> BTW, how do you link the M68k and PPC objects? I recommend
> linking with vlibwos:x.o, to insert some 32-bytes buffers
> between the sections.

Yes, finally I read the docs... ;D

The PPC version of my Commy Plus/4 emulator (called Flamingo) is on
the way very soon. (It runs very well, usual framerate is above 70
without frameskips on AGA, normally 50 is more than enough. 1
Frameskip gives 150 FPS... I was really suprised on this result.
Well, well... Asm optim... But this was a topic some months ago... :D
)

Thanks for your answer!

Bye:

Almos Rajnai

+---------------------------=%%&##########&%%=-------------------------+
| Rachy of Bi0Hazard | PowerAmiga owner | ATO Hungarian |F0NT! |
| e-mail: racs@fs2.bdtf.hu | No Risc No Fun! | member |Editor|
+-----ICQ:-16342960---------=%%&##########&%%=---Phone:+36 20 9891489--+