nios_atexit.s

来自「ALTERA的NIOS处理器!文件直接可以打开直接选择器件重新编译!」· S 代码 · 共 22 行

S
22
字号
; +-------------------------
; | file: nios_atexit.s
; |
; | Implements the standard C library routine
; | "atexit", which registers a routine to be
; | called after "main" exits.
; |

	.include "nios.s"

	.comm atexit_func,nios_wordsize,nios_wordsize	; one word, word-aligned

	.global atexit

atexit:
	MOVIA	%g0,atexit_func
	ST	[%g0],%o0
	JMP	%o7
	MOVI	%o0,0	; (delay slot) return 0: aok

; end of file

⌨️ 快捷键说明

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