📄 main.ls
字号:
1 ; C Compiler for STM8 (COSMIC Software)
2 ; Parser V4.9.2 - 29 Jun 2010
3 ; Generator V4.3.5 - 02 Jul 2010
44 ; 13 @far @interrupt void TLIKeyOn (void)
44 ; 14 {
45 switch .text
46 0000 f_TLIKeyOn:
48 0000 3b0002 push c_x+2
49 0003 be00 ldw x,c_x
50 0005 89 pushw x
51 0006 3b0002 push c_y+2
52 0009 be00 ldw x,c_y
53 000b 89 pushw x
56 ; 16 GPIO_WriteReverse(GPIOD, GPIO_PIN_0|GPIO_PIN_2|GPIO_PIN_3);
58 000c 4b0d push #13
59 000e ae500f ldw x,#20495
60 0011 cd0000 call _GPIO_WriteReverse
62 0014 84 pop a
63 ; 17 }
66 0015 85 popw x
67 0016 bf00 ldw c_y,x
68 0018 320002 pop c_y+2
69 001b 85 popw x
70 001c bf00 ldw c_x,x
71 001e 320002 pop c_x+2
72 0021 80 iret
97 ; 19 main()
97 ; 20 {
99 switch .text
100 0022 _main:
104 ; 22 GPIO_DeInit(GPIOD);
106 0022 ae500f ldw x,#20495
107 0025 cd0000 call _GPIO_DeInit
109 ; 24 GPIO_Init(GPIOD, GPIO_PIN_0|GPIO_PIN_2|GPIO_PIN_3, GPIO_MODE_OUT_PP_LOW_FAST);
111 0028 4be0 push #224
112 002a 4b0d push #13
113 002c ae500f ldw x,#20495
114 002f cd0000 call _GPIO_Init
116 0032 85 popw x
117 ; 26 EXTI_SetTLISensitivity(EXTI_TLISENSITIVITY_RISE_ONLY);
119 0033 a604 ld a,#4
120 0035 cd0000 call _EXTI_SetTLISensitivity
122 ; 28 GPIO_Init(GPIOD,GPIO_PIN_7,GPIO_MODE_IN_FL_IT);
124 0038 4b20 push #32
125 003a 4b80 push #128
126 003c ae500f ldw x,#20495
127 003f cd0000 call _GPIO_Init
129 0042 85 popw x
130 0043 L13:
131 ; 29 while (1);
133 0043 20fe jra L13
146 xdef _main
147 xdef f_TLIKeyOn
148 xref _EXTI_SetTLISensitivity
149 xref _GPIO_WriteReverse
150 xref _GPIO_Init
151 xref _GPIO_DeInit
152 xref.b c_x
153 xref.b c_y
172 end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -