Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Karlos on May 24, 2005, 08:03:58 PM

Title: Looking for good source examples of...
Post by: Karlos on May 24, 2005, 08:03:58 PM
Hi,

A few things on the developer shopping list tonight, so if y'all will be kind enough to bear with me :-D

1) Safely patching system library functions with SetFunction(). I mean it looks easy enough, but I would happily take any advice on the subject

2) Any working examples of manual WarpOS context switches invoked using exception processing rather than the more usual RunPPC() / Run68K() method. They don't have to be C examples, asm will do :-)

3) A working PPC card that doesn't need reflashing every few weeks :lol:
Title: Re: Loking for good source examples of...
Post by: PiR on May 25, 2005, 07:25:01 PM
3) Mine starts working, once it getts warm enough... :-)

At least for the time, when it freezes anyway and needs reboot.  :lol:

PiR
Title: Re: Loking for good source examples of...
Post by: Karlos on May 26, 2005, 03:27:39 PM
Off topic slightly...

My card is fine, but every now and again, it just needs reflashing.

It's a curious cycle. Fine for weeks (or months) then it might need reflashing several times on successive days.

Stranger still, occasionally I can't reflash it with the final version I use (the last pre-grexx one) as sector 0 is locked, implying the old contents are still there.

The behaviour is similar to that you get when disabling the card by pressing the '2' key. However, to re-enable the card you need the CTRL-LAMIGA-RAMIGA combination for 10 seconds. My PC keyboard adaptor does not do this, signalling /KBRESET for no longer than 0.5 seconds.

I really need to wire up my front panel's reset button to the test pad on the motherboard that does /KBRESET. Lazy beggar that I am...
Title: Re: Loking for good source examples of...
Post by: Piru on May 26, 2005, 03:52:33 PM
Quote
1) Safely patching system library functions with SetFunction(). I mean it looks easy enough, but I would happily take any advice on the subject

SnoopDOS is well behaving in this regard. You might want to take a look at SnoopDOS CVS:
snoopdos/patches.c (http://cvs.sourceforge.net/viewcvs.py/snoopdos/snoopdos/patches.c?view=markup)
Title: Re: Looking for good source examples of...
Post by: Karlos on May 26, 2005, 04:20:22 PM
Cheers :-D

-edit-

Now that I corrected the subject title, I expect there might be answers to the other parts too :lol: