📄 nios_atexit.s
字号:
; +-------------------------
; | 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -