📄 hello.cdb
字号:
prop Set :: ($a = self.MIPS, $b = if (GBL.DSPTYPE == 62) {$1} else {$1 * 2}, $e = "ok", self.MIPS = $1, if (($e = self.setCPUClock($b)) != "ok") {self.MIPS = $a} , $e)
}
global OSTYPE :: "BIOS" {
prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
prop Enum :: "BIOS"
prop Visible :: 0
prop Writable :: 0
prop NoGen :: 1
}
global DSPTYPE :: 54 {
prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "DSP Major Type"
prop Visible :: 0
prop Writable :: 0
prop NoGen :: 1
}
global DSPSUBTYPE :: 54 {
prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "DSP Type"
prop Visible :: 1
prop Writable :: 0
prop NoGen :: 1
}
global CHIPTYPE :: "5402" {
prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
prop Enum :: "5402,5409,5409A,5410,5410A,5416,5420,5421,5440,5441,5472,other"
prop Label :: "Chip Support Library (CSL)"
prop NoGen :: 1
prop Visible :: 1
prop Writable :: 1
prop Set :: (self.CHIPTYPE = $1, if ($1 == "other") {self.DISPCALLCSLCFGINIT = 0} , $e = "ok", if (GBL.CHIPCHAIN != nil) {$e = GBL.CHIPCHAIN.chipcall()} , $e)
}
global CSLNAME :: = self.setCSLNAME() {
prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "Chip Support Library Name"
prop Visible :: 1
prop Writable :: 0
prop NoGen :: 1
}
global DISPCALLCSLCFGINIT :: 1 {
prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "Call CSL_cfgInit Initialization routine"
prop Visible :: 0
prop Writable :: self.SUPPORTCSL
prop NoGen :: 1
}
global DSPNAME :: "TMS320C54XX" {
prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
prop Visible :: 0
prop Writable :: 0
prop NoGen :: 1
}
global LOWPMST :: 96 {
prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
prop Format :: "0x%02x"
prop Style :: 0x01 | 0x02
prop Label :: "PMST(6-0)"
prop Set :: (if ((($1 & 0x20) == 0) && (self.CALLMODEL != "near")) {self.error("Cannot set OVLY bit (bit 5) to 0 when far call model is selected")} else {self.LOWPMST = ($1 & 0x7f), "ok"})
prop Visible :: 1
prop Writable :: 1
prop NoGen :: 1
}
global PMST :: = ((VECT.base & 0xff80) | GBL.LOWPMST) {
prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
prop Format :: "0x%04x"
prop Style :: 0x01 | 0x02
prop Label :: "PMST(15-0)"
prop Visible :: 1
prop Writable :: 0
prop NoGen :: 0
}
global SWWSR :: = 0x0209 {
prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
prop Format :: "0x%04x"
prop Style :: 0x01 | 0x02
prop Label :: "SWWSR"
prop Visible :: 1
prop Writable :: 1
prop NoGen :: 0
}
global BSCR :: = 2 {
prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
prop Format :: "0x%04x"
prop Style :: 0x01 | 0x02
prop Label :: "BSCR"
prop Visible :: 1
prop Writable :: 1
prop NoGen :: 0
}
global MODIFYCLKMD :: 0 {
prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "Modify CLKMD"
prop Visible :: 1
prop Writable :: 1
prop NoGen :: 0
prop Set :: (if ($1 != self.MODIFYCLKMD) {self.MODIFYCLKMD = $1} , "ok")
}
global CLKMD :: 0 {
prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
prop Format :: "0x%04x"
prop Style :: 0x01 | 0x02
prop Label :: "CLKMD - (PLL) Clock Mode Register"
prop Visible :: 1
prop Writable :: self.MODIFYCLKMD
prop NoGen :: 0
}
global DSPARITHMETIC :: = (if (GBL.DSPTYPE == 62 && (GBL.DSPSUBTYPE / 100) == 67) {"FLOAT"} else {"FIXED"}) {
prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
prop Enum :: "FIXED,FLOAT"
prop Visible :: 0
prop Writable :: 0
prop NoGen :: 1
}
global DSPWORDSIZE :: = (if (GBL.DSPTYPE == 30 || GBL.DSPTYPE == 40 || GBL.DSPTYPE == 62) {32} else {16}) {
prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "DSP Word Size"
prop Visible :: 0
prop Writable :: 0
prop NoGen :: 1
}
global DSPCHARSIZE :: = (if GBL.DSPTYPE == 62 {8} else {GBL.DSPWORDSIZE}) {
prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "DSP Byte Size"
prop Visible :: 0
prop Writable :: 0
prop NoGen :: 1
}
global DATAPTRSIZE :: = (if (GBL.DSPTYPE == 62) {32} else {if (GBL.DSPTYPE == 54) {16} else {if (GBL.DSPTYPE == 55) {if (GBL.MEMORYMODEL == "SMALL") {16} else {23}} else {0}}}) {
prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
prop iComment :: "Size of the Data Pointer"
prop Visible :: 0
prop Writable :: 0
prop NoGen :: 1
}
global CODEPTRSIZE :: = (if (GBL.DSPTYPE == 62) {32} else {if (GBL.DSPTYPE == 54) {if (GBL.CALLMODEL == "near") {16} else {24}} else {if (GBL.DSPTYPE == 55) {24} else {0}}}) {
prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
prop iComment :: "Size of Code Pointer"
prop Visible :: 0
prop Writable :: 0
prop NoGen :: 1
}
global CALLMODEL :: "near" {
prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
prop Enum :: "near,far"
prop Label :: "Function Call Model"
prop Visible :: 1
prop Writable :: 1
prop NoGen :: 1
prop Set :: (if ($1 == "far") {if ((self.LOWPMST & 0x20) == 0) {self.error("To use the far model the OVLY bit in PMST (bit 5) must be set to 1")} else {if (CLK.gNumOf <= 0) {CLK.HOOKFXN = @CLK_F_frete} , self.CALLMODEL = $1, if (SWI.gNumOf > 0) {SWI.EXECFXN = @SWI_F_exec} , "ok"}} else {if (CLK.gNumOf <= 0) {CLK.HOOKFXN = @CLK_F_rete} , self.CALLMODEL = $1, if (SWI.gNumOf > 0) {SWI.EXECFXN = @SWI_F_exec} , "ok"})
}
global AUTOINIT :: "ROM" {
prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
prop Enum :: "ROM,RAM"
prop Label :: "C Autoinitialization Model"
prop Visible :: 0
prop Writable :: 1
prop NoGen :: 1
}
global USERINIT :: 0 {
prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "Call User Init Function"
prop Visible :: 1
prop Writable :: 1
prop NoGen :: 0
prop Set :: (if ($1 == 0) {self.USERINITFXN = @_FXN_F_nop, self.USERINIT = $1} else {self.USERINIT = $1}, "ok")
}
global USERINITFXN :: @_FXN_F_nop {
prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
prop Label :: "User Init Function"
prop Visible :: 1
prop Writable :: self.USERINIT
prop NoGen :: 0
}
global OLDAUTOCALCULATE :: 1 {
prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "previous value for autocalculate"
prop Visible :: 0
prop Writable :: 0
prop NoGen :: 1
}
global ENABLEINST :: 1 {
prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "Enable Real Time Analysis"
prop Visible :: 1
prop Writable :: 1
prop NoGen :: 0
prop Set :: (if ($1 != self.ENABLEINST) {if ($1) {RTA_toHost.Create("HST"), RTA_fromHost.Create("HST"), RTA_dispatcher.Create("HST"), IDL_busyObj.Create("IDL"), IDL.USEIDLBUSYOBJ = 1, IDL_cpuLoad.Create("IDL"), IDL.AUTOCALCULATE = self.OLDAUTOCALCULATE} else {RTA_toHost.Delete("HST"), RTA_fromHost.Delete("HST"), RTA_dispatcher.Delete("HST"), IDL_busyObj.Delete("IDL"), IDL.USEIDLBUSYOBJ = 0, IDL_cpuLoad.Delete("IDL"), self.OLDAUTOCALCULATE = IDL.AUTOCALCULATE, IDL.AUTOCALCULATE = 0}, self.ENABLEINST = $1} , "ok")
}
global CGENERATE :: 1 {
prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "Do C Generation"
prop Visible :: 0
prop Writable :: 1
prop NoGen :: 1
}
global FARMODE :: = if self.CALLMODEL == "near" {0} else {1} {
prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
prop Visible :: 0
prop Writable :: 0
prop NoGen :: 0
}
global SUPPORTCSL :: = self.CHIPTYPE != "other" {
prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
prop NoGen :: 0
}
global ENABLEALLTRC :: 1 {
prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
prop Label :: "Enable All TRC Trace Event Classes"
prop Visible :: 1
prop Writable :: 1
prop NoGen :: 1
prop Set :: (if ($1) {self.TRCMASKVALUE = 0xDBEF} else {self.TRCMASKVALUE = 0x4000}, self.ENABLEALLTRC = $1, "ok")
}
global TRCMASKVALUE :: 56303 {
prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
prop NoGen :: 0
}
global CALLCSLCFGINIT :: = self.DISPCALLCSLCFGINIT {
prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
prop NoGen :: 0
}
}
type MEM {
isa ObjectMgr
prop Label :: "MEM - Memory Section Manager"
prop name :: "MEM"
prop DependsOn :: "SEM"
prop IsContainedIn :: SYSTEM
prop GlobalIcon :: 115
prop InstanceIcon :: 116
prop GlobalHelpTopic :: (108)
prop InstanceHelpTopic :: (208)
prop InstancePropertyPage :: ("{3D658E70-05E7-11d0-BD44-0020AFEE33C8}")
prop GlobalPropertyPage :: ("{3D658E71-05E7-11d0-BD44-0020AFEE33C8}")
prop GenLinkPrologue :: (if (GBL.DSPTYPE == 55) {"-stack 0x%1x\n-sysstack 0x%2x\n\nSECTIONS { .sysstack : fill = 0xfeeb {%12t\nGBL_sysstackbeg = .;\n*(.sysstack)\nGBL_sysstackend = GBL_sysstackbeg + 0x%2x -1 ;%12t\n _HWI_SYSSTKTOP = GBL_sysstackbeg; %12t\n _HWI_SYSSTKBOTTOM =
(GBL_sysstackend+1);\n%8t} > %3s}%0t\n\nMEMORY {%4t\0, _cmd55stksz, _cmd55systksz, _sysstackSeg"} else {"-stack 0x%1x\nMEMORY {%4t\0, _stackSize"})
prop _stackSize :: MEM.STACKSIZE
prop AllocType :: (if (GBL.FARMODE == 1) {if (self.REUSE == 0 && self.USERCMD == 0) {"20\0, _argsString, _argsSeg, _midPlace, \
_sysdataString, _sysdataSeg, _thirdPlace, \
_trcinitString, _trcinitSeg, _midPlace, \
_gblinitString, _gblinitSeg, _midPlace, \
_memObjString, _memObjSeg, _midPlace, \
_sysinitString, _initSeg, _sysinitPlace, \
_sysregsString, _regsSeg, _midPlace, \
_bssString, _bssSeg, _firstPlace, \
_farString, _farSeg, _secondPlace, \
_cinitString, _cinitSeg, _midPlace, \
_pinitString, _pinitSeg, _midPlace, \
_dataString, _dataSeg, _midPlace, \
_constString, _constSeg, _midPlace, \
_switchString, _switchSeg, _midPlace, \
_cioString, _cioSeg, _midPlace, \
_textString, _textSeg, _midPlace, \
_frtString, _frtSeg, _midPlace, \
_biosString, _biosSeg, _midPlace, \
_biosNORPTBString, _biosNORPTBSeg, _midPlace, \
_stackString, _stackSeg, _midPlace"} else {if (self.REUSE == 0 && self.USERCMD == 1) {"10\0, _argsString, _argsSeg, _midPlace, \
_sysdataString, _sysdataSeg, _thirdPlace, \
_trcinitString, _trcinitSeg, _midPlace, \
_gblinitString, _gblinitSeg, _midPlace, \
_memObjString, _memObjSeg, _midPlace, \
_sysinitString, _initSeg, _sysinitPlace, \
_sysregsString, _regsSeg, _midPlace, \
_biosString, _biosSeg, _midPlace, \
_biosNORPTBString, _biosNORPTBSeg, _midPlace, \
_stackString, _stackSeg, _midPlace"} else {if (self.REUSE == 1 && self.USERCMD == 0) {"19\0, _argsString, _argsSeg, _midPlace, \
_sysdataString, _sysdataSeg, _thirdPlace, \
_trcinitString, _trcinitSeg, _midPlace, \
_gblinitString, _gblinitSeg, _midPlace, \
_memObjString, _memObjSeg, _midPlace, \
_sysregsString, _regsSeg, _midPlace, \
_bssString, _bssSeg, _firstPlace, \
_farString, _farSeg, _secondPlace, \
_cinitString, _cinitSeg, _midPlace, \
_pinitString, _pinitSeg, _midPlace, \
_dataString, _dataSeg, _midPlace, \
_constString, _constSeg, _midPlace, \
_switchString, _switchSeg, _midPlace, \
_cioString, _cioSeg, _midPlace, \
_textString, _textSeg, _midPlace, \
_frtString, _frtSeg, _midPlace, \
_biosString, _biosSeg, _midPlace, \
_biosNORPTBString, _biosNORPTBSeg, _midPlace, \
_stackString, _stackSeg, _midPlace"} else {"9\0, _argsString, _argsSeg, _midPlace, \
_sysdataString, _sysdataSeg, _thirdPlace, \
_trcinitString, _trcinitSeg, _midPlace, \
_gblinitString, _gblinitSeg, _midPlace, \
_memObjString, _memObjSeg, _midPlace, \
_sysregsString, _regsSeg, _midPlace, \
_biosString, _biosSeg, _midPlace, \
_biosNORPTBString, _biosNORPTBSeg, _midPlace, \
_stackString, _stackSeg, _midPlace"}}}} else {if (self.REUSE == 0 && self.USERCMD == 0) {"19\0, _argsString, _argsSeg, _midPlace, \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -