任何人都可以发布一些源代码,这些源代码在编译(如有必要)并运行时会在 Amiga 上产生“Guru Meditation Error”。
汇编程序、C 或 ARexx 都可以。
谢谢。
任何人都可以发布一些源代码,这些源代码在编译(如有必要)并运行时会在 Amiga 上产生“Guru Meditation Error”。
汇编程序、C 或 ARexx 都可以。
谢谢。
尝试以下Alert()
功能exec.library
:http ://amigadev.elowar.com/read/ADCD_2.1/Includes_and_Autodocs_3._guide/node01E3.html
例如(在 C 中):
#include <exec/execbase.h>
#include <exec/alerts.h>
#include <clib/exec_protos.h>
void main(void) {
Alert(ACPU_InstErr); /* or use 0x80000004 if you don't have alerts.h */
/* might not return if it was a dead end (non-recoverable) alert */
}
一个好的旧零除法可以完成这项工作。
#include <stdio.h>
void main() {
printf("%d", 1/0);
};