📄 main.lst
字号:
; side
108 E009 90AE16 LD Y,#$16
109 E00C 90BF8A LD segB3,y ; SegB3 is loaded with the
;values for the segments which
;are externally connected to
;PORTB on one side & connected
;internally to COM3 on the other
; side
110 E00F 90AE86 LD Y,#$86
111 E012 90BF89 LD segB2,Y ; SegB2 is loaded with the
;values for the segments which
;are externally connected to
;PORTB on one side & connected
;internally to COM2 on the other
; side
112 E015 90AE08 LD Y,#08
113 E018 90BF88 LD segB1,Y ; SegB1 is loaded with the
;values for the segments which
;are externally connected to
;PORTB on one side & connected
;internally to COM1 on the other
; side
114 E01B 90AE40 LD Y,#$40
115 E01E 90BF87 LD segA4,Y
116 E021 90AE67 LD Y,#$67
117 E024 90BF86 LD segA3,Y
118 E027 90AE6E LD Y,#$6e
119 E02A 90BF85 LD segA2,Y
120 E02D 90AE22 LD Y,#$22
121 E030 90BF84 LD segA1,Y
122
123
124 E033 90AE48 LD Y,#$48
125 E036 90BF8F LD segD4,Y
126 E039 90AE30 LD Y,#$30
127 E03C 90BF8E LD segD3,Y
128 E03F 90AEC0 LD Y,#$c0
129 E042 90BF8D LD segD2,Y
130 E045 90AE23 LD Y,#$23
131 E048 90BF8C LD segD1,Y
132 E04B 90AE48 LD Y,#$48
133 E04E 90BF93 LD segF4,Y
134 E051 90AE60 LD Y,#$60
135 E054 90BF92 LD segF3,Y
136 E057 90AE60 LD Y,#$60
137 E05A 90BF91 LD segF2,Y
138 E05D 90AE21 LD Y,#$21
139 E060 90BF90 LD segF1,Y
140
METAi Assembler 6.02 (C)1987-91 Crash Barrier Tue Jan 20 19:34:04 2004
Page 7 "VARIABLE.INC"
D:\usr\jatin\AN\Code\LCD_SW\LCD_SW\LCD_4COM\main.asm
141 E063 90AE40 LD Y,#$40
142 E066 90BF97 LD segE4,Y
143 E069 90AE40 LD Y,#$40
144 E06C 90BF96 LD segE3,Y
145 E06F 90AE40 LD Y,#$40
146 E072 90BF95 LD segE2,Y
147 E075 90AE00 LD Y,#$00
148 E078 90BF94 LD segE1,Y
149
150 E07B CDE150 CALL timer_config
151 E07E 9A RIM
152
153 while1
154 wait
155 E07F 90AE03 LD Y,#$03
156 E082 90BF82 LD cpt3,Y
157 E085 90AEFF wait3 LD Y,#$FF
158 E088 90BF81 LD cpt2,Y
159 E08B 90AEFF wait2 LD Y,#$FF
160 E08E 90BF80 LD cpt1,Y
161 E091 3A80 wait1 DEC cpt1
162 E093 26FC JRNE wait1
163 E095 3A81 DEC cpt2
164 E097 26F2 JRNE wait2
165 E099 3A82 DEC cpt3
166 E09B 26E8 JRNE wait3
167
168 E09D 20E0 JRT while1
169
170 ; ********************************************
171 ; * *
172 ; * INTERRUPT SUB-ROUTINES LIBRARY SECTION *
173 ; * *
174 ; ********************************************
175
176 E09F 80 dummy1 iret
177 E0A0 80 dummy2 iret
178 E0A1 80 dummy3 iret
179 E0A2 80 dummy4 iret
180 E0A3 80 dummy5 iret
181 E0A4 80 dummy7 iret
182 E0A5 80 dummy8 iret
183 E0A6 80 dummy9 iret
184 E0A7 80 dummy10 iret
185 E0A8 80 dummy11 iret
186 E0A9 80 dummy12 iret
187 E0AA 80 dummy13 iret
188 E0AB 80 dummy14 iret
189 E0AC 80 dummy15 iret
190
191 ;tima_rt interrupt written in lcd.ram file
192
193 segment 'vectit'
194
195 ;
;*************************************************************
;******
METAi Assembler 6.02 (C)1987-91 Crash Barrier Tue Jan 20 19:34:04 2004
Page 8 "VARIABLE.INC"
D:\usr\jatin\AN\Code\LCD_SW\LCD_SW\LCD_4COM\main.asm
196 ; This last segment should always be there in your own
;programs.
197 ; It defines the interrupt vector adresses and the interrupt
;routines' labels
198 ; considering the microcontroller you are using.
199 ; Refer to the MCU's datasheet to see the number of interrupt
;vector
200 ; used and their addresses.
201 ; Remind that this example is made for a ST72321 based
;application.
202 ;
;*************************************************************
;******
203
204
205 ;
;*************************************************************
;******
206 ; Each interrupt vector uses two addresses in rom, that's what
; the directive
207 ; DC.W means. It says "reserve a word location (.W) in rom
;(DC) and code
208 ; the routine's label in those two addresses.
209 ; Yet, when an interrupt occurs, for example from the timerB,
;timerb's routine
210 ; address (tima_rt) will be loaded in the PC and the program
;will jump to this
211 ; label if allowed. It will execute this routine and then will
; go back to the main
212 ; program (see interrupt chapter in the datasheet for a more
;precise description
213 ; of how to handle interrupts in ST72 micros).
214 ;
;*************************************************************
;******
215
216
217 FFE0 E09F DC.W dummy1 ;FFE0-FFE1h location
218 FFE2 E0A0 DC.W dummy2 ;FFE2-FFE3h location
219 FFE4 E0A1 DC.W dummy3 ;FFE4-FFE5h location
220 FFE6 E0A2 DC.W dummy4 ;FFE6-FFE7h location
221 FFE8 E0A3 DC.W dummy5 ;FFE8-FFE9h location
222 FFEA E0B5 .tima_it DC.W tima_rt ;FFEA-FFEBh location
223 FFEC E0A4 DC.W dummy7 ;FFEC-FFEDh location
;
224 FFEE E0A5 DC.W dummy8 ;FFEE-FFEFh location
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -