📄 c200mnrt.lst
字号:
529 ;---------------------------------------------------------------------------
530 ; Define the "mon_rgst" section in data memory.
531 ;
532 ; Note that "mon_rgst" is defined in the link command file.
533 ; It can be put anywhere in data memory to suit the application.
534 ;
535 ; The ordering is defined by the HLL Debugger and must *not* be altered.
536 ;---------------------------------------------------------------------------
537 0000 MON_PC .usect "mon_rgst", 1 ; 0x00 program counter.
538 0001 MON_ST0 .usect "mon_rgst", 1 ; 0x01 status register 0.
539 0002 MON_ST1 .usect "mon_rgst", 1 ; 0x02 status register 1.
540 0003 MON_ACCL .usect "mon_rgst", 1 ; 0x03 accumulator low.
541 0004 MON_ACCH .usect "mon_rgst", 1 ; 0x04 accumulator high.
542 ;
543 0005 MON_PLO .usect "mon_rgst", 1 ; 0x05 product register low.
544 0006 MON_PHI .usect "mon_rgst", 1 ; 0x06 product register high.
545 0007 MON_TREG .usect "mon_rgst", 1 ; 0x07 temporary register.
546 0008 MON_TOS .usect "mon_rgst", 1 ; 0x08 top of stack.
547 ;
548 0009 AUXREG0 .usect "mon_rgst", 1 ; 0x09 auxiliary register 0.
549 000a AUXREG1 .usect "mon_rgst", 1 ; 0x0a auxiliary register 1.
550 000b AUXREG2 .usect "mon_rgst", 1 ; 0x0b auxiliary register 2.
551 000c AUXREG3 .usect "mon_rgst", 1 ; 0x0c auxiliary register 3.
552 000d AUXREG4 .usect "mon_rgst", 1 ; 0x0d auxiliary register 4.
553 000e AUXREG5 .usect "mon_rgst", 1 ; 0x0e auxiliary register 5.
554 000f AUXREG6 .usect "mon_rgst", 1 ; 0x0f auxiliary register 6.
555 0010 AUXREG7 .usect "mon_rgst", 1 ; 0x10 auxiliary register 7.
556 ;
557 .if (MON_XTND_EITHER == MON_XTND_ON)
558 MON_PMAP .usect "mon_rgst", 1 ; 0x11 program map register.
559 MON_DMAP .usect "mon_rgst", 1 ; 0x12 data map register.
560 .else ; (MON_XTND_EITHER == MON_XTND_OFF)
561 0000 MON_PMAP .set 0 ; Unused.
562 0000 MON_DMAP .set 0 ; Unused.
563 .endif ; (MON_XTND_EITHER)
564 ;
565 0000- MON_RGST_DP .set MON_PC ; DP value for "mon_rgst" section.
566 ;
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 17
568 ;---------------------------------------------------------------------------
569 ; Define the "mon_ioio" section in program memory that is used as part
570 ; of the MON_IO_MAP_USE_RAM option so as to access the IO memory space.
571 ;
572 ; Note that "mon_ioio" is defined in the link command file.
573 ; It can be put anywhere in RAM program memory to suit the application.
574 ;---------------------------------------------------------------------------
575 .if (MON_IO_MAP_USE == MON_IO_MAP_USE_RAM)
576 MON_IO_RUN .usect "mon_ioio", 3 ; RAM program memory.
577 MON_IORD .set MON_IO_RUN
578 MON_IOWR .set MON_IO_RUN
579 .endif ; (MON_IO_MAP_USE == MON_IO_MAP_USE_RAM)
580 ;
581 ;---------------------------------------------------------------------------
582 ; Define the "mon_b0p0" and "mon_b0p1" sections in program and data memory
583 ; that are used as part of the MON_IO_MAP_USE_ROM option so as to access
584 ; the IO memory space.
585 ;
586 ; Note that "mon_b0p0" and "mon_b0p0" are defined in the link command file.
587 ; They can be put anywhere in Bank #0 to suit the application.
588 ;---------------------------------------------------------------------------
589 .if (MON_IO_MAP_USE == MON_IO_MAP_USE_ROM)
590 MON_B0_RUN .usect "mon_b0p0", 3 ; Bank #0 high program memory.
591 MON_B0_LOAD .usect "mon_b0p1", 3 ; Bank #0 low data memory.
592 .endif ; (MON_IO_MAP_USE == MON_IO_MAP_USE_ROM)
593 ;
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 18
595 ;***************************************************************************
596 ; This page is intentionally left blank.
597 ;***************************************************************************
598 ;
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 19
600 ;***************************************************************************
601 ; MISCELLANEOUS TABLES AND CODE FOR THE SECTION "MON_MAIN"
602 ;***************************************************************************
603 ;
604 ;---------------------------------------------------------------------------
605 ; Define the monitor table of constant values in "mon_main" program
606 ; memory and the related mnemonics MON_RELEASE and MON_POINTER that
607 ; the HLL debugger expects mnemonics to be located at MON_ROOT
608 ; (addresses 0x002C and 0x002D in program memory).
609 ;---------------------------------------------------------------------------
610 0010 .sect "mon_main"
611 0010 FIX_ETRAP mon_etrap ;
1 0010 beb7 .word 0beb7h ; was 0beb7h
612 0011 FIX_ESTOP mon_estop ;
1 0011 be90 .word 0be90h
613 0012 0000- FIX_REGISTER .word MON_RGST_DP ;
614 0013 08bf FIX_OPTION1 .word MON_OPTION1 ;
615 0014 030c FIX_OPTION2 .word MON_OPTION2 ;
616 0015 0000- FIX_PAGE_ZRO .word MON_PGE0_DP ;
617 0016 0002 FIX_OPTION3 .word MON_OPTION3 ;
618 0017 0002 FIX_OPTION4 .word MON_OPTION4 ;
619 0018 8000 FIX_PMAP_ADDR .word MON_PMAP_ADDR ;
620 0019 8001 FIX_DMAP_ADDR .word MON_DMAP_ADDR ;
621 ;
622 1019 MON_RELEASE .set 01019h ; The release number of this monitor.
623 0010+ MON_POINTER .set FIX_ETRAP ; Pointer to the table of constant values.
624 ;
625 0010+ MON_START .set FIX_ETRAP ; These two mnemonics are no longer used,
626 0011+ MON_STOP .set FIX_ESTOP ; they exist for backwards compatibility.
627 ;
628 ;---------------------------------------------------------------------------
629 ; Define the monitor table of SE device's memory map
630 ; configuration values in "mon_main" program memory.
631 ;
632 ; This table is used by the MON_SE_CNFG routine to configure
633 ; the SE device's memory map after a reset has occured.
634 ;---------------------------------------------------------------------------
635 .if (MON_SE_CNFG_USE == MON_SE_CNFG_USE_YES)
636 MON_SE_VALU .sect "mon_main"
637 .word 00000H ; 07f0 disable loading
638 .word 08000H ; 07f0 enable loading
639 .word 0A514H ; 07f1
640 .word 00000H ; 07f2
641 .word 00000H ; 07f3
642 .word 00000H ; 07f4
643 .word 00000H ; 07f5
644 .word 00000H ; 07f6
645 .word 00000H ; 07f7
646 .word 00000H ; 07f8
647 .word 02000H ; 07f9
648 .word 08C88H ; 07fa
649 .word 00000H ; 07fb
650 .word 00000H ; 07fc
651 .word 00000H ; 07fd
652 .word 0FFFFH ; 07fe
653 .word 0FFFFH ; 07ff
654 ;
655 MON_SE_ADRS .set 007F0H ; Address of memory configuration registers.
656 .endif ; (MON_SE_CNFG_USE == MON_SE_CNFG_USE_YES)
657 ;
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 20
659 ;---------------------------------------------------------------------------
660 ; Define the MON_EINTR_VECS and MON_ETRAP_VECS macros to be located
661 ; in "mon_main" program memory.
662 ;
663 ; If the expression "MON_VECTOR == MON_VECTOR_BRANCH" is true then the
664 ; monitor is configured to have its MON_EINTR_VECS and MON_ETRAP_VECS
665 ; macros placed directly in the monitor code. The corresponding entries
666 ; in the interrupt vector table at the bottom of program memory contain
667 ; the first of a series of branch instructions that must eventually lead
668 ; to these macros. Read the description of the MON_VECTOR conditional
669 ; assembly option in the monitor's include file for a detailed
670 ; explanation of what this is all about.
671 ;---------------------------------------------------------------------------
672 .if (MON_VECTOR == MON_VECTOR_BRANCH)
673 .sect "mon_main"
674 MON_EINTR mon_eintr_vecs ; This occupies fourteen words.
675 MON_ETRAP mon_etrap_vecs ; This occupies eight words.
676 .endif
677 ;
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 21
679 ;***************************************************************************
680 ; REALTIME MACROS
681 ;***************************************************************************
682 ;
683 ;---------------------------------------------------------------------------
684 ; Define MON_SAVE_FULL macro.
685 ; This macro should not be modified.
686 ;---------------------------------------------------------------------------
687 mon_save_full .macro
688 .if (MON_RGST == MON_RGST_ANY)
689 LDP #MON_RGST_DP ; Set DP to the register table.
690 .endif
691 ;
692 POPD MON_TOS ; save TOS
693 PSHD MON_TOS ;
694 ;
695 SPM 0 ;
696 SPL MON_PLO ; save PLO
697 SPH MON_PHI ; save PHI
698 MPYK 1 ;
699 SPL MON_TREG ; save TREG
700 LT MON_PLO ;
701 MPYK 1 ; restore PLO
702 LPH MON_PHI ; restore PHI
703 LT MON_TREG ; restore TREG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -