crt0.s

来自「SH 的 Diab C源码。包括启动程序crt0.s」· S 代码 · 共 33 行

S
33
字号
##	example/sh/crt0.s: startup for Bubble Sort example##	*** Simplified version for Bubble Sort example only. ***#	*** See src/crtsh/crt0.s for complete version.	     ***#	--------------------------------------------------------##	Copyright 2000 Wind River Systems, Inc.	.file		"crt0.c"	.text	.global		_start	.align		4_start:	movv		__SP_INIT,r15	# Initialize stack pointer r15 to value					# in linker command file.	mov		#0,r0		# Initialize link register r15 and	mov.l		r0,@-r15	# terminate stack.## Insert other initialization code here.#	movv		#0x0a00,r0	# Set "I/O" port value to byte-swapped	movv		_input_count,r1	#   10 (for bubble sort example only).	mov.l		r0,@r1	movv		___init_main,r0	# Finish initialization (copies .data	jsr		@r0		# ROM to RAM, clears .bss), then calls	nop				# example main(), which calls exit(),					# which halts.

⌨️ 快捷键说明

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