📄 crt0.s
字号:
;; example/coldfire/crt0.s: startup for Bubble Sort example;; *** Simplified version for Bubble Sort example only. ***; *** See src/crtcf/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. 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -