startup.s

来自「SOURCES此目录下是C源文件 SOURCESASM此目录下是本项目用到的汇」· S 代码 · 共 25 行

S
25
字号
.global main
.global _start

.section .init

_start:

    ; The following block of code will zero out the entire .sbss and .bss
    ; sections.
    ; NOTE:  If you change the section ordering in your .ld file, you may
    ;        have to modify the code below to work with your section layout.

	mov	    r9,  #_edata
	mov	    r10, #_end
	mov	    r5,  #0
0:	mov	    [r9++], r5
	cmp 	r10, r9
	jge     0b

;.section .text
    jmp     main        ; Jump user's main function
; End of file: startup.s 


⌨️ 快捷键说明

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