![]() |
![]() |
#1 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Minimal/fast code for a Guru Meditation
I know it's a weird question, but I wan't to test exception handling in remote-debugging of fs-uae.
So, do you have a minimal and fast asm code to create a Guru Meditation and/or other system exceptions ? |
![]() |
![]() |
#2 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,436
|
I'd say any of DIVU #0,d0 through d7 should work, assuming you are not catching any exceptions
Edit: two some more simple ones move.w (or .l) <anything>,<any odd address or address register pointing to an odd address> on a 68000 illegal |
![]() |
![]() |
#3 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
You can also use trap #0 to trap #15.
|
![]() |
![]() |
#4 |
Registered User
Join Date: May 2018
Location: France
Posts: 246
|
Thanks,
DIVU #0,d0 or trap #0 worked like a charm ! |
![]() |
![]() |
#5 | |
Registered User
|
Hi!
Quote:
ILLEGAL Or in user mode: Any privileged instruction. Setting trace bit in SR will also trigger an exception... |
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
C - minimal setup code for drawing graphics | attle | Coders. C/C++ | 3 | 06 February 2017 22:07 |
Zool 2: Guru meditation | TenLeftFingers | support.FS-UAE | 11 | 11 October 2013 23:17 |
Need help with Guru Meditation | Ioncannon | support.Hardware | 15 | 09 October 2010 02:40 |
Guru Meditation: no orders possible | A500-Danny | News | 0 | 05 August 2007 16:38 |
A3000 and Guru meditation | gizmomelb | support.Hardware | 2 | 25 August 2006 23:41 |
|
|