Welcome, Guest. Please login or register.

Author Topic: Help needed :-)  (Read 2667 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show all replies
Re: Help needed :-)
« on: April 22, 2004, 05:15:38 PM »
IIRC, the problem is in the way that the ppc.library is terminated by warpos. I found many ppc programs would not execute directly - whatever load code they have is adversely affected.

However, try using a program called 'runelf' to launch powerup code under warpos ppclibemu emulation. I found it mostly works here fine (tried with various ppc.library programs).
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show all replies
Re: Help needed :-)
« Reply #1 on: April 23, 2004, 02:31:01 PM »
Just to repeat myself :-)

Try "runelf". I find that it seems to get many ppc.library programs working under my warpos / ppclibemu installation fine.

Eg

runelf somepupprogam args

Works fine here 99% of the time.
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show all replies
Re: Help needed :-)
« Reply #2 on: April 24, 2004, 03:29:57 AM »
Quote

Is there any link where I can download it?


That's a damn good question. You know, to be honest, it's been kicking around my system for so long I don't know how I come about having it. It maybe even came with a devkit?

I remember it was largely uneeded after early versions of powerup (as you say) where the loadseg was fixed, but I found it was a handy way of kickstarting the emulation.

What I found was that normally, if I try to run a pup program, even with the loadseg stuff in the emulation it failed with the "not executable" error.

So out of curiosity I tried to run the pup with runelf under the emulation and it worked.

Later I found that runelf itself was sufficient to get the emulation going, that is I do a "runelf >nil:" in my user startup. This silently fails because it doesn't run an elf file (none given) but it activates the emulated ppc.library and after that I found most ppc.library stuff just runs from shell as usual.

You could try searching aminet for it, I honestly can't remember when/where I got it from, but it has been a long time :-D

-edit-

You know, thinking about it, a simple thing would be to write a small 680x0 program that does OpenLibrary("ppc.library", 0) and then doesn't close it on exit. That would probably achieve the same result ;-)
int p; // A