- 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.
推薦閱讀
- 精通JavaScript+jQuery:100%動態網頁設計密碼
- Unity 2020 Mobile Game Development
- 基于免疫進化的算法及應用研究
- 區塊鏈:以太坊DApp開發實戰
- Hands-On JavaScript High Performance
- Python Geospatial Development(Second Edition)
- STM32F0實戰:基于HAL庫開發
- Python:Master the Art of Design Patterns
- Creating Stunning Dashboards with QlikView
- 移動增值應用開發技術導論
- Visual FoxPro 6.0程序設計
- Qt 4開發實踐
- Visual Basic語言程序設計上機指導與練習(第3版)
- SCRATCH編程課:我的游戲我做主
- HTML5 Canvas核心技術:圖形、動畫與游戲開發