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

正文內(nèi)容

第四章微處理器結(jié)構(gòu)和指令集-資料下載頁

2025-08-01 13:32本頁面
  

【正文】 F5 標(biāo)志 C=1,V=0,H=0, N=1,Z=0; 算術(shù)運(yùn)算過程中標(biāo)志的意義 (2) ? 同一個(gè) 標(biāo)志 ,其 含義 也因參與運(yùn)算的數(shù)或編碼的不同而不同! ? 不管參與運(yùn)算的是什么數(shù)或什么編碼 ,在計(jì)算機(jī)看來都是一些“二進(jìn)數(shù) ”!所有的指令功能都是針對 “二進(jìn)數(shù) ”而言的 。所得到的運(yùn)算結(jié)果 ,在計(jì)算機(jī)看來也是 “二進(jìn)數(shù)”! ? 究竟參與運(yùn)算的這些 “二進(jìn)數(shù) ”是什么 數(shù) 或什么 編碼 ,得到的運(yùn)算 “結(jié)果” 是什么數(shù)或什么編碼 ,這是在 程序設(shè)計(jì)階段 ,由 程序員 事先 安排好了的 ,不能隨便解釋。 比如剛才例子中的數(shù) “ 0xE8” ,如果當(dāng)初程序員按著 補(bǔ)碼 編碼制度用來表示 “ 24”的 。以后任何人都只能這樣“理解”和“解釋” 。絕對不可以再解釋為無符號的數(shù)值“ 232” ! 相反 ,如果當(dāng)初程序員是用它來表示無符號的數(shù)值“ 232” ,那么以后也絕對不可以再解釋為“ 24” ! 算術(shù)運(yùn)算過程中標(biāo)志的意義 (3) ? 比較二 無符號數(shù) 大小時(shí)應(yīng)看 C標(biāo)志。 ? BCD數(shù) 運(yùn)算后不必直接關(guān)心 H標(biāo)志 ,只要執(zhí)行正確的 調(diào)整指令 即可。 ? 補(bǔ)碼 運(yùn)算后必須檢查 OV標(biāo)志 ,以免發(fā)生 溢出 還不知道。 ? 補(bǔ)碼 運(yùn)算溢出后雖結(jié)果已經(jīng)錯(cuò)誤,但其符號仍可按相反解釋代表結(jié)果的正負(fù)! BCC Branch if Carry Clear C = 0 BCS Branch if Carry Set C = 1 BEQ Branch if Equal Z = 1 BMI Branch if Minus N = 1 BNE Branch if Not Equal Z = 0 BPL Branch if Plus N = 0 BVC Branch if V Clear V = 0 BVS Branch if V Set V = 1 短條件轉(zhuǎn)移指令 BHI Branch if Higher (Result M C+Z = 0) BHS Branch if Higher or Same (Result ≥ M C = 0) BLO Branch if lower ( Result < M C = 1) BLS Branch if lower or Same ( Result ≤ M C+Z = 0) BGE Branch if Greater than or Equal( Result ≥ M N⊕V = 0) BGT Branch if Greater than( Result > M Z+( N⊕ V ) = 0) BLE Branch if Less than or Equal( Result≤M Z+( N⊕ V )= 1) BLT Branch if Less than ( Result < M N⊕ V = 1) BRCLR Branch if selected bits Clear M(mm)=0 BRSET Branch if selected bits Set M(mm)!=0 LBCC Long Branch if Carry Clear C = 0 LBCS Long Branch if Carry Set C = 1 LBEQ Long Branch if Equal Z = 1 LBMI Long Branch if Minus N = 1 LBNE Long Branch if Not Equal Z = 0 LBPL Long Branch if Plus N = 0 LBVC Long Branch if V Clear V = 0 LBVS Long Branch if V Set V = 1 LBHI Long Branch if Higher Result = M C+Z = 0 LBHS Long Branch if Higher or Same Result ≥ M C = 0 長條件轉(zhuǎn)移指令 LBLO Long Branch if lower Result < M C = 1 LBLS Long Branch if lower or Same Result ≤ M C +Z = 0 LBGE Long Branch if Greater than or Equal Result ≥ M N⊕V = 0 LBGT Long Branch if Greater than Result > M Z+( N⊕ V ) = 0 LBLE Long Branch if Less than or Equal Result ≤ M Z+( N⊕ V ) = 1 LBLT Long Branch if Less than Result < M N⊕ V = 1 長條件轉(zhuǎn)移指令 DBEQ Decrement (counter), if (counter) Equal 0, than Branch 。 DBNE Decrement (counter), if (counter) Not Equal 0, than Branch 。 IBEQ Increment (counter), if (counter) Equal 0, than Branch 。 IBNE Increment (counter), if (counter) Not Equal 0, than Branch 。 TBEQ Test (counter), if (counter) Equal 0, than Branch 。 TBNE Test (counter), if (counter) Not Equal 0, than Branch 。 2. 循環(huán)控制指令 JSR Jump to Subroutine ;絕對 BSR Branch to Subroutine ;相對 RTS Return from Subroutine RTI Return from Interrupt 3. 跳轉(zhuǎn)與子程序調(diào)用指令 STOP STOP Process 進(jìn)入停止模式 WAI Wait for Interrupt 進(jìn)入等待模式 TRAP Trap 非法指令陷進(jìn),中斷非法指令 SWI Software Interrupt 軟件中斷 SYS Systems Call 系統(tǒng)調(diào)用中斷,類似 WAI BGND Back Ground Mode 進(jìn)入 BDM模式 4. 其他指令 Page 63 Numbering and coding systems 用匯編語言編寫程序 匯編管理指令(偽指令): 匯編管理指令將編譯需要的信息傳遞給編譯器,不生成可執(zhí)行代碼。常用指令如下: EOT EQU $04 ; define EOT 0x04 ORG $4000 GLOBLE RMB 2 。int a STRING FCC ?hello world? 。const string “hello world” FCB EOT FDB GLOBLE XDEF GET_CHAR 。PUBLIC XREF MAIN 。EXTERN Page 64 Numbering and coding systems 用匯編語言編寫程序 模塊化的編程方法: 流程圖 ?語言編程 ?調(diào)試 ?修改 ?試運(yùn)行 ?修改 ?運(yùn)行 舉例:已知年和月份,通過判斷這個(gè)月是大月、小月、平月還是閏月,給出該月份的天數(shù)。 流程圖: 輸入: 年份 月份 輸出 天數(shù) 思想 算法 語言: 數(shù)據(jù)類型 程序結(jié)構(gòu) Page 65 Numbering and coding systems 用匯編語言編寫程序 匯編程序:(匯編程序講解 .doc) Page 66 Numbering and coding systems 用匯編語言編寫程序 C程序:( C語言程序講解 .doc)
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1