crt0.s
来自「M68K 的 Diab C源码。包括启动程序crt0.s」· S 代码 · 共 27 行
S
27 行
;; example/m68k/crt0.s: startup for Bubble Sort example;; *** Simplified version for Bubble Sort example only. ***; *** See src/crt68/crt0.s for complete version. ***; --------------------------------------------------------;; Copyright 1997-1998 Diab Data, Inc. .file "crt0.s" PSECT XDEF start ALIGN 4 nop ; Debuggers may object to starting at 0.start: move.l #___SP_INIT,a7 ; Initialize stack pointer a7 to value in ; linker command file. (No sdata for a5.) move.w #0x0a00,d1 ; Set "I/O port" value to byte-swapped 10 move.w d1,_input_count ; (for bubble sort example only). jsr ___init_main ; Finishes initialization (copies .data ROM ; to RAM, clears .bss), then calls example ; main(), which calls exit(), which halts.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?