console_in.s

来自「嵌入式操作系统T-Kernel 完整代码」· S 代码 · 共 43 行

S
43
字号
/* *---------------------------------------------------------------------- *    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. * *---------------------------------------------------------------------- *//* *	T-Kernel extended SVC interface library (sh7751r) * *	   created from /usr/local/te/include/sys/consio.h */#include <machine.h>#include <tk/sysdef.h>#include <sys/svc/fnconsio.h>	.text	.balign	2	.globl	Csym(console_in)	.type	Csym(console_in), @functionCsym(console_in):	mov.l	r7, @-r15	mov.l	r6, @-r15	mov.l	r5, @-r15	mov.l	r4, @-r15	mov.l	fno, r0	mov	r15, r4	trapa	#TRAP_SVC	rts	add	#4*4, r15	.balign	4fno:	.long	CONSIO_CONSOLE_IN_FN

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?