Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

carry flag

The flag that records an unsigned carry out of the top bit when adding, or a borrow when subtracting.

After an addition, CF (x86-64) and C (ARM64) hold the carry out of bit n-1, 1 exactly when the unsigned result wrapped; after a subtraction, x86-64 sets CF on a borrow (a < b unsigned) while ARM64 sets C when there is no borrow (a >= b unsigned).

Examples

  • In 8 bits, 0xFF + 0x01 gives 0x00 with CF = 1: the unsigned sum didn't fit.

Read the full section →