_exit.s

来自「KPIT GNU Tools is a set of GNU developme」· S 代码 · 共 18 行

S
18
字号
#include "setarch.h"/* `sleep' is passed an argument in r0 that indicates the reason   the program is exiting.  The format of r0 is defined in    devo/include/wait.h. */ /* extern void _exit (int rc); */	.section .text	.align 2	.global __exit__exit:	mov.w   #0xdead,r1	mov.w   #0xbeef,r2	mov.b   r0l,r0h	sub.b   r0l,r0l	sleep

⌨️ 快捷键说明

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