English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 28 July 2018, 13:08   #1
prb28
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 ?
prb28 is offline  
Old 28 July 2018, 13:32   #2
roondar
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
roondar is offline  
Old 28 July 2018, 15:35   #3
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
You can also use trap #0 to trap #15.
meynaf is offline  
Old 28 July 2018, 16:20   #4
prb28
Registered User
 
Join Date: May 2018
Location: France
Posts: 246
Thanks,

DIVU #0,d0 or trap #0

worked like a charm !
prb28 is offline  
Old 12 August 2018, 10:28   #5
BastyCDGS
Registered User
 
Join Date: Nov 2015
Location: Freiburg / Germany
Age: 44
Posts: 201
Send a message via ICQ to BastyCDGS
Hi!

Quote:
Originally Posted by prb28 View Post
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 ?
Another possibility:
ILLEGAL

Or in user mode: Any privileged instruction.

Setting trace bit in SR will also trigger an exception...
BastyCDGS 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
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

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 13:07.

Top

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