crts.la

来自「cxstm8 编译器」· LA 代码 · 共 26 行

LA
26
字号
   1                     ;	C STARTUP FOR STM8
   2                     ;	WITHOUT ANY DATA INITIALIZATION
   3                     ;	Copyright (c) 2006 by COSMIC Software
   4                     ;
   5                     	xref	f_main, __stack
   6                     	xdef	f_exit, __stext
   7                     ;
   8                     ;	startup routine from reset vector
   9                     ;
  10                     	switch	.text
  11  8080               __stext:
  12                     ;
  13                     ;	initialize stack pointer
  14                     ;
  15  8080 ae01ff        	ldw	x,#__stack	; stack pointer
  16  8083 94            	ldw	sp,x		; in place
  17                     ;
  18                     ;	execute main() function
  19                     ;	may be called by a 'jpf' instruction if no return expected
  20                     ;
  21  8084 8d0080c7      	callf	f_main		; execute main
  22  8088               f_exit:
  23  8088 20fe          	jra	f_exit		; and stay here
  24                     ;
  25                     	end

⌨️ 快捷键说明

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