📄 c200mnrt.lst
字号:
177 0020 STAT_STRP .set 20h ; Mask for strap mode.
178 0040 STAT_FUNC .set 40h ; Mask for functional mode.
179 ;
180 0000 B_STATXFER .set 0 ; Bit number of good transfer.
181 0001 B_STATRFUL .set 1 ; Bit number of read buffer full.
182 0002 B_STATCMND .set 2 ; Bit number of command type message.
183 0003 B_STATWFUL .set 3 ; Bit number of write buffer full.
184 0004 B_STATANYBP .set 4 ; Bit number of message/breakpoint.
185 0005 B_STATSTRP .set 5 ; Bit number of strap mode.
186 0006 B_STATFUNC .set 6 ; Bit number of functional mode.
187 ;
TMS320C24xx COFF Assembler Version 7.02 Wed Apr 16 12:20:49 2003
Copyright (c) 1987-2002 Texas Instruments Incorporated
Monitor program for C25LP HLL Real-Time Debugger. PAGE 6
189 ;---------------------------------------------------------------------------
190 ; Define the MSG_CNTL register masks and bits.
191 ;---------------------------------------------------------------------------
192 0001 ANA_TRPON .set 001h ; Trap On.
193 ; When set, enables analysis.
194 0002 ANA_UBP0 .set 002h ; User Breakpoint Bit #0.
195 0004 ANA_UBP1 .set 004h ; User Breakpoint Bit #1.
196 ; 00 => reserved.
197 ; 01 => create load mechanism.
198 ; 10 => analysis in wait state,
199 ; disallow write to message registers.
200 ; 11 => analysis in run state,
201 ; allow write to message registers.
202 0008 ANA_MSGFLG .set 008h ; Message Flag.
203 ; Used as simple flag from monitor to debugger.
204 0010 ANA_SWITCH .set 010h ; Message Switch.
205 ; Toggling this bit high then low
206 ; generates an event to the JTM.
207 0020 ANA_SPOFF .set 020h ; Suspend Off.
208 ; When set, allows access the message passing
209 ; registers when not in ETRAP routine.
210 0040 ANA_TPOFF .set 040h ; Analysis NMI Off.
211 ; When set, disables the analysis NMI.
212 ;
213 0000 B_ANATRPON .set 0 ; Bit number of trap on.
214 0001 B_ANAUBP0 .set 1 ; Bit number of user breakpoint bit 0.
215 0002 B_ANAUBP1 .set 2 ; Bit number of user breakpoint bit 1.
216 0003 B_ANAMSGFLG .set 3 ; Bit number of message flag.
217 0004 B_ANASWITCH .set 4 ; Bit number of message switch.
218 0005 B_ANASPOFF .set 5 ; Bit number of suspend off.
219 0006 B_ANATPOFF .set 6 ; Bit number of trap off.
220 ;
221 ;---------------------------------------------------------------------------
222 ; Define the MSG_CNTL register values that are to be actually used.
223 ;---------------------------------------------------------------------------
224 0067 ANA_DEFAULT .set ANA_TPOFF | ANA_SPOFF | ANA_UBP1 | ANA_UBP0 | ANA_TRPON
225 0067 ANA_SWLO .set ANA_DEFAULT | 000h ; ANA_SWITCH low.
226 0077 ANA_SWHI .set ANA_DEFAULT | 010h ; ANA_SWITCH high.
227 ;
TMS320C24xx COFF Assembler Version 7.02 Wed Apr 16 12:20:49 2003
Copyright (c) 1987-2002 Texas Instruments Incorporated
Monitor program for C25LP HLL Real-Time Debugger. PAGE 7
229 ;---------------------------------------------------------------------------
230 ; Define the MON_OPTION1 mnemonic.
231 ;---------------------------------------------------------------------------
232 .eval 0, OPTION1
233 .eval (MON_INT_MSK << 00h) | OPTION1, OPTION1 ; uses 8 bits
234 ;
235 .eval (0 << 08h) | OPTION1, OPTION1 ; unused
236 .eval (0 << 09h) | OPTION1, OPTION1 ; unused
237 .eval (MON_VECTOR << 0Ah) | OPTION1, OPTION1 ; uses 1 bit
238 .eval (MON_INT_ALTR << 0Bh) | OPTION1, OPTION1 ; uses 1 bit
239 ;
240 .eval (MON_RGST << 0Ch) | OPTION1, OPTION1 ; uses 1 bit
241 .eval (MON_AR << 0Dh) | OPTION1, OPTION1 ; uses 3 bits
242 ;eval (MON_AR << 0Eh) | OPTION1, OPTION1 ; uses 3 bits
243 ;eval (MON_AR << 0Fh) | OPTION1, OPTION1 ; uses 3 bits
244 08bf MON_OPTION1 .set OPTION1
245 ;
246 ;---------------------------------------------------------------------------
247 ; Define the MON_OPTION2 mnemonic.
248 ;---------------------------------------------------------------------------
249 .eval 0, OPTION2
250 .eval MON_IO_MAP_USE | OPTION2, OPTION2 ; uses 2 bits
251 ;eval MON_IO_MAP_USE | OPTION2, OPTION2 ; uses 2 bits
252 .eval MON_AUTO_INC | OPTION2, OPTION2 ; uses 2 bits
253 ;eval MON_AUTO_INC | OPTION2, OPTION2 ; uses 2 bits
254 ;
255 .eval MON_ERROR_CHECK | OPTION2, OPTION2 ; uses 2 bits
256 ;eval MON_ERROR_CHECK | OPTION2, OPTION2 ; uses 2 bits
257 .eval MON_RESET_MESG | OPTION2, OPTION2 ; uses 2 bits
258 ;eval MON_RESET_MESG | OPTION2, OPTION2 ; uses 2 bits
259 ;
260 .eval MON_CORE | OPTION2, OPTION2
261 .eval MON_FULL | OPTION2, OPTION2
262 .eval MON_SE_CNFG_USE | OPTION2, OPTION2
263 .eval MON_WAIT_USE | OPTION2, OPTION2
264 ;
265 .eval MON_WAIT_STOP | OPTION2, OPTION2
266 .eval MON_WAIT_SNGL | OPTION2, OPTION2
267 .eval MON_WAIT_EVER | OPTION2, OPTION2
268 .eval (0 << 0Fh) | OPTION2, OPTION2 ; unused
269 030c MON_OPTION2 .set OPTION2
270 ;
TMS320C24xx COFF Assembler Version 7.02 Wed Apr 16 12:20:49 2003
Copyright (c) 1987-2002 Texas Instruments Incorporated
Monitor program for C25LP HLL Real-Time Debugger. PAGE 8
272 ;---------------------------------------------------------------------------
273 ; Define the MON_OPTION3 mnemonic.
274 ;---------------------------------------------------------------------------
275 .eval 0, OPTION3
276 .eval MON_PMAP_PAGE | OPTION3, OPTION3 ; uses 2 bits
277 ;eval MON_PMAP_PAGE | OPTION3, OPTION3 ; uses 2 bits
278 .eval MON_XTND_PROG | OPTION3, OPTION3
279 .eval (0 << 03h) | OPTION3, OPTION3 ; unused
280 ;
281 0002 MON_OPTION3 .set OPTION3
282 ;
283 ;---------------------------------------------------------------------------
284 ; Define the MON_OPTION4 mnemonic.
285 ;---------------------------------------------------------------------------
286 .eval 0, OPTION4
287 .eval MON_DMAP_PAGE | OPTION4, OPTION4 ; uses 2 bits
288 ;eval MON_DMAP_PAGE | OPTION4, OPTION4 ; uses 2 bits
289 .eval MON_XTND_DATA | OPTION4, OPTION4
290 .eval (0 << 03h) | OPTION4, OPTION4 ; unused
291 ;
292 0002 MON_OPTION4 .set OPTION4
293 ;
TMS320C24xx COFF Assembler Version 7.02 Wed Apr 16 12:20:49 2003
Copyright (c) 1987-2002 Texas Instruments Incorporated
Monitor program for C25LP HLL Real-Time Debugger. PAGE 9
295 ;***************************************************************************
296 ; REALTIME SECTIONS
297 ;***************************************************************************
298 ;
299 ;---------------------------------------------------------------------------
300 ; Define the table of addresses for the
301 ; external commands used by the HLL Debugger.
302 ;
303 ; This table contain one address parameter per external command.
304 ; It is the start point of the routine that implements the command.
305 ;
306 ; Note that "_A" signifies an address table mnemonic.
307 ; Note that "_C" signifies an state machine command mnemonic.
308 ; Note that "_S" signifies an state machine state mnemonic.
309 ;---------------------------------------------------------------------------
310 0000 EXTERNAL_TABLE .sect "mon_main"
311 ;
312 0000 00b1+ UNUSED_A .word MON_UNUSED ; Unused Command.
313 ;
314 0001 00b4+ A2MNRT_A .word MON_ADRSWR ; Write Monitor Address
315 ;
316 0002 00b7+ PM2HOST_A .word MON_PMRD ; Read Program Memory
317 ;
318 0003 00ba+ PM2MNRT_A .word MON_PMWR ; Write Program Memory
319 ;
320 0004 00bd+ DM2HOST_A .word MON_DMRD ; Read Data Memory
321 ;
322 0005 00c3+ DM2MNRT_A .word MON_DMWR ; Write Data Memory
323 .if (MON_IO_MAP_USE != MON_IO_MAP_USE_NOT)
324 IO2HOST_A .word MON_IORD ; Read IO Memory
325 ;
326 IO2MNRT_A .word MON_IOWR ; Write IO Memory
327 .endif ; (MON_IO_MAP_USE != MON_IO_MAP_USE_NOT)
328 ;
329 ;---------------------------------------------------------------------------
330 ; Define the set of external commands used by the HLL Debugger.
331 ;
332 ; These command values intentionally increment by ones.
333 ;---------------------------------------------------------------------------
334 0000 UNUSED_C .set UNUSED_A - EXTERNAL_TABLE ;
335 ;
336 0001 A2MNRT_C .set A2MNRT_A - EXTERNAL_TABLE ;
337 ;
338 0002 PM2HOST_C .set PM2HOST_A - EXTERNAL_TABLE ;
339 ;
340 0003 PM2MNRT_C .set PM2MNRT_A - EXTERNAL_TABLE ;
341 ;
342 0004 DM2HOST_C .set DM2HOST_A - EXTERNAL_TABLE ;
343 ;
344 0005 DM2MNRT_C .set DM2MNRT_A - EXTERNAL_TABLE ;
345 .if (MON_IO_MAP_USE != MON_IO_MAP_USE_NOT)
346 IO2HOST_C .set IO2HOST_A - EXTERNAL_TABLE ;
347 ;
348 IO2MNRT_C .set IO2MNRT_A - EXTERNAL_TABLE ;
349 .endif ; (MON_IO_MAP_USE != MON_IO_MAP_USE_NOT)
350 ;
TMS320C24xx COFF Assembler Version 7.02 Wed Apr 16 12:20:49 2003
Copyright (c) 1987-2002 Texas Instruments Incorporated
Monitor program for C25LP HLL Real-Time Debugger. PAGE 10
352 ;---------------------------------------------------------------------------
353 ; Define the table of addresses for the routines that implement
354 ; the internal commands used by the monitor itself.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -