nios_jumptostart.s

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

S
32
字号


# This file gets linked first by nios-build, so that
# if you type "G40100" (or whatever is the code's base
# address) it will find the correct actual starting
# point of the code.
#
# It can only be linked explicitly; it has no labels
# so it won't be found in an archive or anything.
#
# ex: set tabstop=8:
#

	.include "nios.s"

	.section .text.prefix		; linker script knows to put this first

	.global nr_jumptostart		; Global so we can see it in dumps.

nr_jumptostart:
	PFX	%hi(_start@h)		; 0x00
	MOVI	%g0,%lo(_start@h)	; 0x02
.ifdef __nios32__
	PFX	%xhi(_start@h)		; 0x04
	MOVHI	%g0,%xlo(_start@h)	; 0x06
.endif
	JMP	%g0			; 0x08 / 0x04 on Nios 16
	NOP				; 0x0a / 0x06 on Nios 16
	.byte	'N','i','o','s'		; 0x0c / 0x08 on Nios 16 Signature, for ROM use.

; End of file

⌨️ 快捷键说明

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