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

📄 main.ls

📁 STM8s
💻 LS
字号:
   1                     ; C Compiler for STM8 (COSMIC Software)
   2                     ; Generator V4.2.8 - 03 Dec 2008
  35                     ; 25 void main(void)
  35                     ; 26 {
  37                     	switch	.text
  38  0000               _main:
  42                     ; 31     GPIO_Init(LEDS_PORT, (LED1_PIN |LED2_PIN |LED3_PIN), GPIO_MODE_OUT_PP_HIGH_FAST);
  44  0000 4bf0          	push	#240
  45  0002 4b0d          	push	#13
  46  0004 ae500f        	ldw	x,#20495
  47  0007 cd0000        	call	_GPIO_Init
  49  000a 85            	popw	x
  50  000b               L12:
  51                     ; 37         GPIO_WriteReverse(LEDS_PORT, (LED1_PIN | LED2_PIN | LED3_PIN ));  //取反
  53  000b 4b0d          	push	#13
  54  000d ae500f        	ldw	x,#20495
  55  0010 cd0000        	call	_GPIO_WriteReverse
  57  0013 84            	pop	a
  58                     ; 46             Delay((u16)25000);
  60  0014 ae61a8        	ldw	x,#25000
  61  0017 ad02          	call	_Delay
  64  0019 20f0          	jra	L12
  98                     ; 58 void Delay(u16 nCount)
  98                     ; 59 {
  99                     	switch	.text
 100  001b               _Delay:
 102  001b 89            	pushw	x
 103       00000000      OFST:	set	0
 106  001c 2007          	jra	L54
 107  001e               L34:
 108                     ; 63         nCount--;
 110  001e 1e01          	ldw	x,(OFST+1,sp)
 111  0020 1d0001        	subw	x,#1
 112  0023 1f01          	ldw	(OFST+1,sp),x
 113  0025               L54:
 114                     ; 61     while (nCount != 0)
 116  0025 1e01          	ldw	x,(OFST+1,sp)
 117  0027 26f5          	jrne	L34
 118                     ; 65 }
 121  0029 85            	popw	x
 122  002a 81            	ret
 135                     	xdef	_main
 136                     	xdef	_Delay
 137                     	xref	_GPIO_WriteReverse
 138                     	xref	_GPIO_Init
 157                     	end

⌨️ 快捷键说明

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