- Mastering Assembly Programming
- Alexey Lyashko
- 95字
- 2021-08-20 10:23:29
Bit #0 - carry flag
The carry flag (CF) is mostly used for the detection of carry/borrow in arithmetic operations and is set if the bit width result of the last such operation (such as addition and subtraction) exceeds the width of the ALU. For example, the addition of two 8-bit values, 255 and 1, would result in 256, which requires at least nine bits to be stored. In such a case, bit eight (the ninth bit) is placed into the CF, thus, letting us and the processor know that the last operation ended with carry.
推薦閱讀
- CMDB分步構(gòu)建指南
- Vue.js前端開(kāi)發(fā)基礎(chǔ)與項(xiàng)目實(shí)戰(zhàn)
- Scratch 3.0少兒編程與邏輯思維訓(xùn)練
- Mastering ServiceNow(Second Edition)
- Visual FoxPro程序設(shè)計(jì)
- Gradle for Android
- SQL Server與JSP動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)
- Python圖形化編程(微課版)
- 編寫(xiě)高質(zhì)量代碼:改善Objective-C程序的61個(gè)建議
- Go語(yǔ)言開(kāi)發(fā)實(shí)戰(zhàn)(慕課版)
- Learning Python Data Visualization
- 視窗軟件設(shè)計(jì)和開(kāi)發(fā)自動(dòng)化:可視化D++語(yǔ)言
- Python機(jī)器學(xué)習(xí)開(kāi)發(fā)實(shí)戰(zhàn)
- C++17 By Example
- Mastering Object:Oriented Python(Second Edition)