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

正文內(nèi)容

第2章armthumb微處理器結(jié)構(gòu)及指令系統(tǒng)-power(編輯修改稿)

2025-01-29 16:04 本頁面
 

【文章內(nèi)容簡介】 : SWP指令用于將一個內(nèi)存單元 (該單元地址放在寄存器 Rn中 )的內(nèi)容讀取到一個寄存器 Rd中,同時將另一個寄存器 Rm的內(nèi)容寫入到該內(nèi)存單元中。使用 SWP可實現(xiàn)信號量操作。 指令格式如下:SWP{cond}{B} Rd,Rm,[Rn] 其中, B為可選后綴,若有 B,則交換字節(jié),否則交換 32位字;Rd用于保存從存儲器中讀入的數(shù)據(jù); Rm的數(shù)據(jù)用于存儲到存儲器中,若 Rm與 Rn相同,則為寄存器與存儲器內(nèi)容進行交換; Rn為要進行數(shù)據(jù)交換的存儲器地址, Rn不能與 Rd和 Rm相同。 SWP指令應(yīng)用示例:SWP R1,R1,[R0] 。將 R1的內(nèi)容與 R0指向的存儲單元的內(nèi)容進行交換 SWPB R1,R2,[R0] 。將 R0指向的存儲單元內(nèi)的容讀取一字節(jié)數(shù)據(jù)到 R1中。(高 24位清零 ),并將 R2的內(nèi)容寫入到該內(nèi)存單元中。(最低字節(jié)有效 ) 寄存器和存儲器交換指令(4).ARM數(shù)據(jù)處理指令 數(shù)據(jù)處理指令大致可分為 3類: 167。數(shù)據(jù)傳送指令;167。算術(shù)邏輯運算指令;167。比較指令。 數(shù)據(jù)處理指令只能對寄存器的內(nèi)容進行操作,而不能對內(nèi)存中的數(shù)據(jù)進行操作。所有 ARM數(shù)據(jù)處理指令均可選擇使用 S后綴,并影響狀態(tài)標(biāo)志。 比較指令 CMP、 CMN、 TST和 TEQ不需要后綴 S,它們會直接影響狀態(tài)標(biāo)志。助記符 說明 操作 條件碼位置MOV Rd,operand2 數(shù)據(jù)傳送 Rd← operand2 MOV{cond}{S}MVN Rd,operand2 數(shù)據(jù)非傳送 Rd← (~operand2) MVN{cond}{S}(4). ARM數(shù)據(jù)處理指令: 數(shù)據(jù)傳送助記符 說明 操作 條件碼位置MOV Rd,operand2 數(shù)據(jù)傳送 Rd← operand2 MOV{cond}{S}MVN Rd,operand2 數(shù)據(jù)非傳送 Rd← (~operand2) MVN{cond}{S} MOV指令將 8位圖立即數(shù)(參看 “ 第 2操作數(shù): immed_8r—— 常數(shù)表達式 ” )或寄存器傳送到目標(biāo)寄存器( Rd),可用于移位運算等操作。指令格式如下: MOV{cond}{S} Rd,operand2 (4). ARM數(shù)據(jù)處理指令: 數(shù)據(jù)傳送 MOV指令舉例如下:MOVSR3,R1,LSL 2 ; R3=R12,并影響標(biāo)志位 MOV PC,LR ; PC=LR,子程序返回 助記符 說明 操作 條件碼位置MOV Rd,operand2 數(shù)據(jù)傳送 Rd← operand2 MOV{cond}{S}MVN Rd,operand2 數(shù)據(jù)非傳送 Rd← (~operand2) MVN{cond}{S} MVN指令將 8位圖立即數(shù)(參看 “ 第 2操作數(shù): immed_8r—— 常數(shù)表達式 ” )或寄存器( operand2)按位取反后傳送到目標(biāo)寄存器( Rd),因為其具有取反功能,所以可以裝載范圍更廣的立即數(shù)。指令格式如下: MVN{cond}{S} Rd,operand2 (4). ARM數(shù)據(jù)處理指令: 數(shù)據(jù)傳送 MVN指令舉例如下: MVN R1,0xFF ; R1=0xFFFFFF00 MVN R1,R2 ; 將 R2取反,結(jié)果存到 R1 助記符 說明 操作 條件碼位置ADD Rd, Rn, operand2 加法運算指令 Rd← Rn+operand2 ADD{cond}{S}SUB Rd, Rn, operand2 減法運算指令 Rd← Rnoperand2 SUB{cond}{S}RSB Rd, Rn, operand2 逆向減法指令 Rd← operand2Rn RSB{cond}{S}ADC Rd, Rn, operand2 帶進位加法 Rd← Rn+operand2+Carry ADC{cond}{S}SBC Rd, Rn, operand2 帶進位減法指令 Rd← Rnoperand2(NOT)Carry SBC{cond}{S}RSC Rd, Rn, operand2 帶進位逆向減法指令Rd← operand2Rn(NOT)Carry RSC{cond}{S}(4). ARM數(shù)據(jù)處理指令: 算術(shù)運算助記符 說明 操作 條件碼位置ADD Rd, Rn, operand2 加法運算指令 Rd← Rn+operand2 ADD{cond}{S}SUB Rd, Rn, operand2 減法運算指令 Rd← Rnoperand2 SUB{cond}{S}RSB Rd, Rn, operand2 逆向減法指令 Rd← operand2Rn RSB{cond}{S}ADC Rd, Rn, operand2 帶進位加法 Rd← Rn+operand2+Carry ADC{cond}{S}SBC Rd, Rn, operand2 帶進位減法指令 Rd← Rnoperand2(NOT)Carry SBC{cond}{S}RSC Rd, Rn, operand2 帶進位逆向減法指令Rd← operand2Rn(NOT)Carry RSC{cond}{S} 加法運算指令 —— ADD指令將 operand2的值與 Rn的值相加,結(jié)果保存到 Rd寄存器。指令格式如下: ADD{cond}{S} Rd,Rn,operand2 (4). ARM數(shù)據(jù)處理指令: 算術(shù)運算應(yīng)用示例: ADDS R1,R1,1 。R1=R1+1,并影響標(biāo)志位 ADDS R3, R1, R2, LSL 2 。 R3= R1+R22 助記符 說明 操作 條件碼位置ADD Rd, Rn, operand2 加法運算指令 Rd← Rn+operand2 ADD{cond}{S}SUB Rd, Rn, operand2 減法運算指令 Rd← Rnoperand2 SUB{cond}{S}RSB Rd, Rn, operand2 逆向減法指令 Rd← operand2Rn RSB{cond}{S}ADC Rd, Rn, operand2 帶進位加法 Rd← Rn+operand2+Carry ADC{cond}{S}SBC Rd, Rn, operand2 帶進位減法指令 Rd← Rnoperand2(NOT)Carry SBC{cond}{S}RSC Rd, Rn, operand2 帶進位逆向減法指令Rd← operand2Rn(NOT)Carry RSC{cond}{S} 減法運算指令 —— SUB指令用寄存器 Rn減去 operand2,結(jié)果保存到 Rd中。指令格式如下: SUB{cond}{S} Rd,Rn,operand2 (4). ARM數(shù)據(jù)處理指令: 算術(shù)運算應(yīng)用示例: SUBS R0,R0,1 。R0=R01 SUB R6, R7, 0x10 。 R6= R70x10助記符 說明 操作 條件碼位置ADD Rd, Rn, operand2 加法運算指令 Rd← Rn+operand2 ADD{cond}{S}SUB Rd, Rn, operand2 減法運算指令 Rd← Rnoperand2 SUB{cond}{S}RSB Rd, Rn, operand2 逆向減法指令 Rd← operand2Rn RSB{cond}{S}ADC Rd, Rn, operand2 帶進位加法 Rd← Rn+operand2+Carry ADC{cond}{S}SBC Rd, Rn, operand2 帶進位減法指令 Rd← Rnoperand2(NOT)Carry SBC{cond}{S}RSC Rd, Rn, operand2 帶進位逆向減法指令Rd← operand2Rn(NOT)Carry RSC{cond}{S} 逆向減法運算指令 —— RSB指令將 operand2的值減去 Rn,結(jié)果保存到 Rd中。指令格式如下: RSB{cond}{S} Rd,Rn,operand2 (4). ARM數(shù)據(jù)處理指令: 算術(shù)運算應(yīng)用示例: RSB R3,R1,0xFF00 。R3=0xFF00R1 RSBS R1,R2,R2,LSL 2 。R1=(R22)R2=R23 助記符 說明 操作 條件碼位置ADD Rd, Rn, operand2 加法運算指令 Rd← Rn+operand2 ADD{cond}{S}SUB Rd, Rn, operand2 減法運算指令 Rd← Rnoperand2 SUB{cond}{S}RSB Rd, Rn, operand2 逆向減法指令 Rd← operand2Rn RSB{cond}{S}ADC Rd, Rn, operand2 帶進位加法 Rd← Rn+operand2+Carry ADC{cond}{S}SBC Rd, Rn, operand2 帶進位減法指令 Rd← Rnoperand2(NOT)Carry SBC{cond}{S}RSC Rd, Rn, operand2 帶進位逆向減法指令Rd← operand2Rn(NOT)Carry RSC{cond}{S} 帶進位加法指令 —— ADC將 operand2的值與 Rn的值相加,再加上 CPSR中的 C條件標(biāo)志位,結(jié)果保存到 Rd寄存器。指令格式如下: ADC{cond}{S} Rd,Rn,operand2 (4). ARM數(shù)據(jù)處理指令: 算術(shù)運算應(yīng)用示例: ADDS R0,R0,R2 。使用 ADC實現(xiàn) 64位加法 ADC R1,R1,R3 。(R R0)= (R R0)+(RR2)助記符 說明 操作 條件碼位置ADD Rd, Rn, operand2 加法運算指令 Rd← Rn+operand2 ADD{cond}{S}SUB Rd, Rn, operand2 減法運算指令 Rd← Rnoperand2 SUB{cond}{S}RSB Rd, Rn, operand2 逆向減法指令 Rd← operand2Rn RSB{cond}{S}ADC Rd, Rn, operand2 帶進位加法 Rd← Rn+operand2+Carry ADC{cond}{S}SBC Rd, Rn, operand2 帶進位減法指令 Rd← Rnoperand2(NOT)Carry SBC{cond}{S}RSC Rd, Rn, operand2 帶進位逆向減法指令Rd← operand2Rn(NOT)Carry RSC{cond}{S} 帶進位減法指令 —— SBC用寄存器 Rn減去 operand2,再減去 CPSR中的 C條件標(biāo)志位的非 (即若 C標(biāo)志清零,則結(jié)果減去 1),結(jié)果保存到 Rd中。指令格式如下: SBC{cond}{S} Rd,Rn,operand2 (4). ARM數(shù)據(jù)處理指令: 算術(shù)運算應(yīng)用示例: SUBS R0,R0,R2 。使用 SBC實現(xiàn) 64位減法 SBC R1,R1,R3。 (R R0)= (R R0)(R R2)助記符 說明 操作 條件碼位置ADD Rd, Rn, operand2 加法運算指令 Rd← Rn+operand2 ADD{cond}{S}SUB Rd, Rn, operand2 減法運算指令 Rd← Rnoperand2 SUB{cond}{S}RSB Rd, Rn, operand2 逆向減法指令 Rd← operand2Rn RSB{cond}{S}ADC Rd, Rn, operand2 帶進位加法 Rd← Rn+operand2+Carry ADC{cond}{S}SBC Rd, Rn, operand2 帶進位減法指令 Rd← Rnoperand2(NOT)Carry SBC{cond}{S}RSC Rd, Rn, operand2 帶進位逆向減法指令Rd← operand2Rn(NOT)Carry RSC{cond}{S} 帶進位逆向減法指令 —— RSC指
點擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1