32bitSaviour
DIIDevHeads IoT Integration Server
•Created by Marvee Amasi on 9/27/2024 in #firmware-and-baremetal
Understanding cmp Instruction in Assembly and Debugging with GDB
The
cmp
, often integer comparison, compare the values then sets a condition flag which jump instructions rely on to make jump decisions. cmp
works by subtraction (cmp a, b == b-a)
Use info registers
in gdb to peek at registers.5 replies