📄 tmsvc.h
字号:
/* *---------------------------------------------------------------------- * T-Kernel * * Copyright (C) 2004 by Ken Sakamura. All rights reserved. * T-Kernel is distributed under the T-License. *---------------------------------------------------------------------- * * Version: 1.01.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2004/6/28. * *---------------------------------------------------------------------- *//* * @(#)tmsvc.h (libtm/SH7727) * * T-Engine/SH7727 definitions * * * Used by assembler */#include <tk/sysdef.h>/* * T-Monitor service call */.macro _TMCALL func, fno .text .balign 2 .globl Csym(\func) .type Csym(\func), @functionCsym(\func): .if \fno < 128 mov #\fno, r0 trapa #TRAP_MONITOR rts nop .else mov.l fno_\func, r0 trapa #TRAP_MONITOR rts nop .balign 4 fno_\func: .long \fno .endif.endm#define TMCALL(func, fno) _TMCALL func, fno
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -