⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crt0.s

📁 SH 的 Diab C源码。包括启动程序crt0.s
💻 S
字号:
##	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -