📄 exceptionhandler-ts201.asm
字号:
/* =============================================================================
*
* Description: This is the exception handler.
*
* -----------------------------------------------------------------------------
* Comments:
*
* ===========================================================================*/
#include "VDK.h"
.section/charany/doubleany data1;
/* declare external globals */
/* declare locals */
.var _temp_xR0;
.section/charany/doubleany program;
/******************************************************************************
* UserExceptionHandler
*/
/* User Exception Handler entry point */
.align_code 4;
.GLOBAL UserExceptionHandler;
UserExceptionHandler:
/**
* Handle the exception...
*
* Remember that the VDK reserves the user exception 0, which
* is accessed with the following instruction:
*
* TRAP 0;;
*
* Any other exception (user or system), is your responsibility to handle
* here.
*/
/**
* Save off RETI (so as not to trample it), and return
*/
[J31 + _temp_xR0] = XR0; XR0 = RETI;;
RETI = RETS;;
RTI(NP)(ABS); RETI = XR0; XR0 = [j31 + _temp_xR0];;
.UserExceptionHandler.end:
/* =========================================================================== */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -