freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

codewarrior使用指南(文件)

 

【正文】 TM Freescale?logoFreescaleothernamesof169。Inc.完成這個(gè)任務(wù)的代碼是:Int==thetrademarksInc.ortherespectiveFreescale訪問(wèn) CPU寄存器?CPU中的寄存器沒(méi)有對(duì)應(yīng)的固定地址?可以用匯編指令對(duì)它們進(jìn)行訪問(wèn)?C語(yǔ)言無(wú)法直接訪問(wèn)這些寄存器?C編譯器允許在 C代碼中使用匯編指令1) _asm3) asmFreescaleofAllservicepropertyowners.Semiconductor,andareSemiconductor,productaretheir2022.FreescaleofAllservicepropertyowners.Semiconductor, 效率隨編譯器的不同而改變;167。 提高代碼效率? 移位和屏蔽167。thetrademarksInc.ortherespectiveFreescale聯(lián)合體是一個(gè)變量,不同的時(shí)間表示不同的類(lèi)型和大小的對(duì)象,編譯器會(huì)根據(jù)要求決定變量的大小。FreescaleofAllservicepropertyowners.Semiconductor,andareSemiconductor,productaretheir2022.編譯?如何對(duì) IO及寄存器進(jìn)行操作?如何使用 ProcessorFreescaleofAllservicepropertyowners.Semiconductor,編譯器提供了一種非 ANSI標(biāo)準(zhǔn)的方式來(lái)實(shí)現(xiàn)中斷:VectorSize0 0xFFFE0xFFFD 22 0xFFFA(MCU“interruptinterrupt++。FreescaleofAllservicepropertyowners.Semiconductor,andareSemiconductor,productaretheir2022.andareSemiconductor,productaretheir2022.thetrademarksInc.ortherespectiveFreescale利用 interrupt關(guān)鍵字聲明中斷服務(wù)程序78TM Freescale?logoFreescaleothernamesof169。Inc.thetrademarksInc.ortherespectiveFreescaleTM?調(diào)試?如何寫(xiě)中斷程序?ExpertTM Freescale?logoFreescaleothernamesof169。Inc.or81TM Freescale?logoFreescaleothernamesof169。Inc.C代碼中使用變量 unsigned int CData。thetrademarksInc.ortherespectiveFreescale在匯編中訪問(wèn) C變量變量聲明( C語(yǔ)言)unsigned int CData。在匯編代碼中使用變量 LDD CConst STD CData83TM Freescale?logoFreescaleothernamesof169。Inc.84TM Freescale?logoFreescaleothernamesof169。Inc. Load value of Cdata in D PSHD 。thetrademarksInc.ortherespectiveFreescaleTM?調(diào)試?如何寫(xiě)中斷程序?ExpertTM Freescale?logoFreescaleothernamesof169。Inc.thetrademarksInc.ortherespectiveFreescale數(shù)據(jù)類(lèi)型? 通過(guò)為變量選擇最合適的數(shù)據(jù)類(lèi)型可以最大程度地得到最短的代碼和執(zhí)行時(shí)間? 8位微控制器內(nèi)部的數(shù)據(jù)的長(zhǎng)度是 8位(一字節(jié)),然而C首選的數(shù)據(jù)類(lèi)型是 ‘int‘? 8位機(jī)處理 8位數(shù)據(jù)類(lèi)型比 16位數(shù)據(jù)類(lèi)型效率更高? “int“和大數(shù)據(jù)類(lèi)型只有當(dāng)所描述的數(shù)據(jù)的大小需要時(shí)才使用? 當(dāng)優(yōu)先考慮代碼效率時(shí),雙精度和浮點(diǎn)操作效率低,應(yīng)當(dāng)避免88TM Freescale?logoFreescaleothernamesof169。Inc.thetrademarksInc.ortherespectiveFreescale默認(rèn) CodeWarrior 的數(shù)據(jù)類(lèi)型所有的基本數(shù)據(jù)類(lèi)型可以被改變 …但是建議盡量使用默認(rèn)值90TM Freescale?logoFreescaleothernamesof169。Inc.盡量使用最小的數(shù)據(jù)類(lèi)型 盡可能使用無(wú)符號(hào)數(shù) FreescaleofAllservicepropertyowners.Semiconductor,andareSemiconductor,productaretheir2022.thetrademarksInc.ortherespectiveFreescale在 main函數(shù)里聲明了 3種不同數(shù)據(jù)類(lèi)型的變量94TM Freescale?logoFreescaleothernamesof169。Inc.thetrademarksInc.ortherespectiveFreescale所有聲明的全局變量均被使用。FreescaleofAllservicepropertyowners.Semiconductor,andareSemiconductor,productaretheir2022.FreescaleofAllSemiconductor,areandSemiconductor,owners.propertyserviceAllofFreescale2022.theirareproductSemiconductor,areandInc.169。ofnamesotherFreescalelogo編譯器僅僅為使用到的變量保留存儲(chǔ)空間,這個(gè)例子中只有VarA被使用到了95TM Freescale?FreescalerespectivetheorInc.trademarkstheInc.169。ofnamesotherFreescalelogo 并且使用了一個(gè)寄存器每個(gè)變量的其余位被清零clr ,X變量在堆棧里有一個(gè)地址93TM Freescale?Semiconductor,owners.propertyserviceAllofFreescale2022.theirareproductSemiconductor,areand數(shù)據(jù)類(lèi)型選擇q對(duì) 8位 MCU,FreescalerespectivetheorInc.trademarkstheInc.169。ofnamesotherFreescalelogoHC08的數(shù)據(jù)類(lèi)型ANSI標(biāo)準(zhǔn)沒(méi)有精確定義數(shù)據(jù)類(lèi)型的大小,但是 CodeWarrior 定義了 ...所有的數(shù)據(jù)類(lèi)型默認(rèn)為有符號(hào) (除了 char)signed 例如 : ‘int’ = ‘signed int’ 0 25589TM Freescale?FreescalerespectivetheorInc.trademarkstheInc.169。ofnamesotherFreescalelogo嵌入式編程 vs. PC編程嵌入式編程環(huán)境的主要特點(diǎn):? 有限的 RAM;? 有限的 ROM;? 有限的??臻g;? 面向硬件編程;? 嚴(yán)格的定時(shí)( ISR,任務(wù), … );? 很多不同種類(lèi)的指針( far/near/rom/uni/paged/…);? 特殊關(guān)鍵字 /標(biāo)識(shí)符(@, interrupt, tiny, … ) 87TM Freescale?FreescalerespectivetheorInc.trademarksthe嵌入式編程注意事項(xiàng)?PRM文件設(shè)置?在新項(xiàng)目中加入或刪除文件?Inc.169。ofnamesotherFreescalelogo Load 10 in D CLRA JSR AddVar85Freescale?在匯編中調(diào)用 C函數(shù)? 函數(shù)( C代碼中)void AddVar(unsigned int first, unsigned int second){ ASMData = Cdata + first + second。FreescalerespectivetheorInc.trademarksthe在 C中調(diào)用匯編函數(shù)? 函數(shù)(匯編代碼) AddVar: ADDD CData ADDD 2, SP STD ASMData RTS函數(shù)原型 (C代碼 )void AddVar(unsigned int first, unsigned int second)。FreescalerespectivetheorInc.trademarksthe變量聲明 (ASM) XREF CData。Inc.169。ofnamesotherFreescalelogo82TM Freescale?在 C中訪問(wèn)匯編變量變量聲明 (ASM) XDEF ASMData, ASMConstDataSec: SECTIONASMData: 1ConstSec: SECTIONASMConst: $44A6變量聲明( C語(yǔ)言) extern int ASMData。FreescalerespectivetheorInc.trademarksthe或 如何使用匯編和 C語(yǔ)言混合編程? 匯編和 C語(yǔ)言中使用相同的符號(hào)(變量及函數(shù)名)? 注意參數(shù)傳遞規(guī)則? 注意函數(shù)返回值原則? 注意目標(biāo)文件格式 FreescalerespectivetheorInc.trademarksthe嵌入式編程注意事項(xiàng)?PRM文件設(shè)置?在新項(xiàng)目中加入或刪除文件?Inc.169。ofnamesotherFreescalelogo 用 RTI 而不是 RTS中斷向量存儲(chǔ)了中斷服務(wù)程序的起始地址函數(shù)指針79Freescale?FreescalerespectivetheorInc.trademarkstheInc.169。ofnamesotherFreescalelogo …END連接向量表 ENTRIES tableEND77TM Freescale?Semiconductor,owners.propertyserviceAllofFreescale tcount++。Semiconductor,owners.propertyserviceAllofFreescale2022.theirareproductSemiconductor,areandINT_Timer(void)中斷向量號(hào) ”intC) 2中斷向量表分配 0xFFFB 2... ... ...n 0xFFFF0xFFFF 21 0xFFFCAddressVector2022.theirareproductSemiconductor,areand如何使用匯編和 C語(yǔ)言混合編程?啟動(dòng)程序?利用向?qū)?chuàng)建一個(gè)新工程項(xiàng)目?Semiconductor,owners.propertyserviceAllofFreescale2022.theirareproductSemiconductor,areandInc.169。ofnamesotherFreescalelogo 經(jīng)常被優(yōu)化成位操作70TM Freescale?? 位類(lèi)型167。2022.theirareproductSemiconductor,areandSemiconductor,owners.propertyserviceAllofFreescale2022.theirareproductSemiconductor,areand2) asmInc.169。ofnamesotherFreescalelogo66TM Freescale?*)0x2FFA。ptr。訪問(wèn)固定內(nèi)存位置?嵌入式系統(tǒng)通常的特點(diǎn)是需要編程者訪問(wèn)一個(gè)指定的存貯器位置。FreescalerespectivetheorInc.t
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1