- 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.
推薦閱讀
- 神經網絡編程實戰:Java語言實現(原書第2版)
- Java從入門到精通(第4版)
- Learning Informatica PowerCenter 10.x(Second Edition)
- Learning Vaadin 7(Second Edition)
- PySide 6/PyQt 6快速開發與實戰
- 基于ARM Cortex-M4F內核的MSP432 MCU開發實踐
- CoffeeScript Application Development Cookbook
- Kotlin進階實戰
- JavaScript前端開發基礎教程
- 游戲設計的底層邏輯
- ArcPy and ArcGIS(Second Edition)
- Clojure Data Structures and Algorithms Cookbook
- Elasticsearch實戰(第2版)
- 匯編語言程序設計
- 物聯網及低功耗藍牙5.x高級開發