English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 31 October 2014, 09:19   #1
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,660
Guru Meditating in style

A silly idea popped into my head.

The blinking red Guru box certainly works as a very, very, VERY (too) clear warning that something went wrong!

Was just wondering if anyone can think of a patch to style it to look a little more friendly or nicer, or even skip the "reset and blink" thing altogether and show a little requester with the guru number (like for some software failures) instead. Or something.

Any takers?

Maybe there's a patch on Aminet already and I just don't know about it? Do I need to burn a new Kickstart ROM?
Photon is offline  
Old 31 October 2014, 10:24   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,032
The problem is that if a dead-end alert occurs, the system is considered so unstable that a requester most likely cannot be opened any more (or not yet; IIRC the alert is shown *after* a system reset). Surely you could patch the alert routine to do something different.

This program does it for example: http://aminet.net/package/util/boot/NewAlertH
It still has the blinking frame, but a more useful text.
thomas is offline  
Old 31 October 2014, 13:43   #3
James
Registered User
 
Join Date: Mar 2010
Location: Beckenham/England
Posts: 797
Behold the BWOD:


Click image for larger version

Name:	BlueWindowOfDeath_ReducedSize.png
Views:	411
Size:	368.3 KB
ID:	42055

Thanks to the NoGuru patch from MCP... It doesn`t catch every crash though.

http://mcp.a1k.org/mcp.html
James is offline  
Old 31 October 2014, 14:32   #4
Hewitson
Registered User
 
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,773
It's a bit hard to read but the Gates picture is funny
Hewitson is offline  
Old 31 October 2014, 19:07   #5
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,660
Actually, I might also be looking for a monitor/"software cartridge" that opens up on any trapped exception. Should work from OCS/1MB and up, but I'll take an old simple one that doesn't do cache CPUs if it has a small memory footprint.
Photon is offline  
Old 31 October 2014, 19:08   #6
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
There may have been a BlizKick patch that patched the Guru requester but I don't think that works in a burned ROM. Piru also created SmartCrash which is executed after booting.

https://www.sintonen.fi/sw/SmartCrash-1.3.3.lha

More information like the offending program name is given if SegTracker is installed.
matthey is offline  
Old 31 October 2014, 21:09   #7
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,660
Well, the stylish Guru thingy is just for something more useful and better looking, and perhaps even allows a choice of reset or not, instead of waiting, clicking, booting.

The monitor thingy would just be something I run separately, no need for being in ROM or resident as long as it's in memory.
Photon is offline  
Old 31 October 2014, 23:52   #8
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,681
Sounds like you are looking for something like GOMF or AlPatch...
Minuous is offline  
Old 01 November 2014, 00:01   #9
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
I'm pretty sure I have some AMOS Basic code that calls up the Guru containing *any* text of your choice. It's been a while since I have used it, so it could just be a very cool 'fake' Guru. I'll have to check it out over the weekend to find out which it is.
I suppose you could write your own Guru in ASM and just redirect the normal guru to it (before it actually does anything) by finding the start of the Guru code.
Lonewolf10 is offline  
Old 01 November 2014, 00:15   #10
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,660
Fake gurus have been done 185632 times. That is not the guru I am looking for.
Photon is offline  
Old 01 November 2014, 00:16   #11
Michael Sykes
WinUAE end user
 
Michael Sykes's Avatar
 
Join Date: Jan 2014
Location: Bremen
Age: 45
Posts: 649
Does MPCs guru patch have any bugs?

Last edited by Michael Sykes; 01 November 2014 at 00:22.
Michael Sykes is offline  
Old 01 November 2014, 00:38   #12
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
Quote:
Originally Posted by Photon View Post
Fake gurus have been done 185632 times. That is not the guru I am looking for.
Ok, I couldn't wait until tomorrow. The following AMOS code creates the yellow (recoverable) Guru with no options:

Code:
'**********************************************
'*                  Guru.AMOS                 *
'*          ©1992 by Volker Stepprath         *
'*  Calls a DisplayAlert ( Guru Meditation )  *
'**********************************************
'
Amos To Back 
'
'**** Define text in display ****
'
T$=Chr$(0)+Chr$(75)+Chr$(38)+" No panic ... "
T$=T$+"This GURU was called up by AMOS !"+Chr$(0)
'
'**** Call up DisplayAlert ( Guru ) ****   
'
Areg(0)=Varptr(T$)
Dreg(1)=80
XALERT=Intcall(-90)
'
If XALERT Then Print "left button" Else Print "right button"
'
Amos To Front 
End

I'm sure you can see what's happening, but just to be clear the code sets the text pointer in A0, a timer(?) in D1 and then calls Intuition. I don't know what -90 is off the top of my head...

*** looks up -90 for Intuition.library ***


Aha! It's DisplayAlert.

DisplayAlert:

D0=Alert Number
A0=String pointer (string has to be null terminated, of course)
D1=Height (in pixels/lines?)
Lonewolf10 is offline  
Old 01 November 2014, 11:38   #13
modrobert
old bearded fool
 
modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 57
Posts: 779
Quote:
Originally Posted by Minuous View Post
Sounds like you are looking for something like GOMF or AlPatch...
Yes, for WB 1.3 or lower, try GOMF.

http://aminet.net/package/util/boot/Gomf

Quote:
Gomf stands for "Get Outa My Face", a phrase many a programmer has mumbled
when a Guru alert appears unexpectedly. This interesting little program
can generally make the Guru go away and allow you to clean up and shutdown
more cleanly.
There was a later commercial version, GOMF 3.x something, where you can use a "hardware button" addon.

I suspect this is similar hardware design as the level7 interrupt button for HRTMon (and ASM-One).
modrobert is offline  
Old 01 November 2014, 13:16   #14
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,660
LoneWolf10: again, I'm not looking to _generate_ a good looking Guru. Just see a better looking one when I get one.

Checking out GOMF!
Photon is offline  
Old 01 November 2014, 13:56   #15
modrobert
old bearded fool
 
modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 57
Posts: 779
I tried to find GOMF 3.0 on the EAB FTP server but no luck, looks like it is on its way into tosec.

GOMF! The Gurubuster v3.0 (1988-09-07)(Hypertek - Silicon Springs)(CA).adf

I found the manual scanned here (PDF, TXT):

https://archive.org/details/G.O.M.F....ilicon_Springs


Still remember the logo..hehe.



If someone sit on this release, please zone it.

Last edited by modrobert; 01 November 2014 at 14:10. Reason: Added logo.
modrobert is offline  
Old 01 November 2014, 15:03   #16
Hewitson
Registered User
 
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,773
I have located GOMF 2.1 if it's of any interest.

http://janeway.exotica.org.uk/release.php?id=30080
Hewitson is offline  
Old 01 November 2014, 15:19   #17
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,660
Gomf1.0 is not enough, well, since I use 2.0 and up for using utilities etc mostly it has to work on that. I don't really care about guru messages when running games/demos since then you have to reboot between games and sometimes demos anyway!

I don't really care about seeing the guru message when getting it using the Amiga OS either, actually. The number of times (over a decade of use) when I've had need to know "what kind of guru and at which address" can be counted on one hand.

If you get a guru, you know it, because like, the machine resets... so really, patching the guru entry point with something that boots directly would probably do me. For kick 2.0-3.1 is OK.

I've tried to provoke a guru that the requester on kick 3.1 can't handle, but haven't succeeded with a few simple tries.

Sometimes you get a guru as an extra gift when clicking either requester button and sometimes not. So I guess I'm also looking for tips to do a little program that tests the resident patch.

So now I/you should be able to test patches. Any tips for a patch? I guess it's some vector in early boot process.

Here is ProvokeGuru31 if someone wants it, which causes a guru that is not captured by Gomf1.0 under Kick/WB 3.1, and causes a normal guru on kick < 2.0 (I guess) and causes the requester on kick >=2.0.

Hmm... sadistic idea... what happens if you put JMP 1 at the trap vector for word at odd address?

Quote:
Originally Posted by Hewitson
I have located GOMF 2.1 if it's of any interest.

http://janeway.exotica.org.uk/release.php?id=30080

EDIT: Updated ProvokeGuru31 to give a guru $8000003D that neither the OS nor GOMF2.1 can handle. I.e. should give straight guru on all Amigas AFAIK. So now I/you can test patches! I guess it's some vector in early boot process. Toni?

Last edited by Photon; 01 November 2014 at 15:46.
Photon is offline  
Old 01 November 2014, 15:52   #18
modrobert
old bearded fool
 
modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 57
Posts: 779
Quote:
Originally Posted by Photon View Post
Gomf1.0 is not enough, well, since I use 2.0 and up for using utilities etc mostly it has to work on that. I don't really care about guru messages when running games/demos since then you have to reboot between games and sometimes demos anyway!
GOMF was more or less made defunct after WB 2.0 and up where you get a requester, hence no releases after 1988 (it seems).
modrobert is offline  
Old 01 November 2014, 16:04   #19
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,310
Quote:
Originally Posted by Michael Sykes View Post
Does MPCs guru patch have any bugs?
As far as I know there are no bugs but as Thomas mentioned already the system is in a very unstable condition when a guru happens. So any later action done is user risk. Sooner or later you get a system freeze.
daxb is offline  
Old 01 November 2014, 16:04   #20
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,660
modrobert: That's kind of what I wrote So now I'm looking for a way to code a resident program that patches the guru box trigger and boots directly instead. That, also, only has to work on >= kick 2.0 since that's what I use for productivity.
Photon is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Guru - It Just Gets Better Loedown support.Hardware 13 09 April 2009 20:43
Guru BippyM Retrogaming General Discussion 1 09 September 2006 19:03
Guru! Fackamato support.WinUAE 17 15 September 2004 22:57
Guru? Dr. Dude request.Apps 2 29 January 2004 13:30
Space Crusade and a meditating guru Kelju Ivan support.Games 11 31 December 2002 02:52

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:56.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10313 seconds with 14 queries