在 Amiga 上生成 'Guru Meditation Error'
Generate a 'Guru Meditation Error' on an Amiga
任何人都可以 post 一些源代码,当编译(如果需要)和 运行 时,将在 Amiga 上生成 'Guru Meditation Error'。
汇编程序、C 或 ARexx 都可以。
谢谢。
试试exec.library
的Alert()
函数: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);
};
任何人都可以 post 一些源代码,当编译(如果需要)和 运行 时,将在 Amiga 上生成 'Guru Meditation Error'。
汇编程序、C 或 ARexx 都可以。
谢谢。
试试exec.library
的Alert()
函数: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);
};