renesas_tcpip_close.s

来自「T-kernel Tcp/ip Protocol Stack Sample」· S 代码 · 共 40 行

S
40
字号
#include <machine.h>#include <tcpip_fn.h>#if defined(_MIC_SH7145_)#define TRAP_SVC	(34)#endif	.text	.balign	2	.globl	Csym(renesas_tcpip_close)	.type	Csym(renesas_tcpip_close), @functionCsym(renesas_tcpip_close):	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	cmp/pz	r0	bf	renesas_tcpip_close_err	rts	add	#4*4, r15renesas_tcpip_close_err:	mov.l	L_mask, r7	and	r7, r0	mov.l	L_errno, r7	mov.l	r0, @r7	mov.l	L_retno, r0	rts	add	#4*4, r15	.balign	4fno:	.long	TCPIP_RENESAS_TCPIP_CLOSE_FNL_errno:	.long	Csym(renesas_tcpip_errno)L_retno:	.long	0xFFFFFFFFL_mask:		.long	0xFFFF

⌨️ 快捷键说明

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