Search code examples
assemblyhexreverse-engineeringctf

why "add #0x10, sp" adds 16 bits to the sp while "add #0x8, sp" adds only 8? (microcorruption CTF, "cusco" stage)


in the cusco challenge of microcorruption CTF I noticed that after line 453a the sp adds 16 to the sp value while on line 4476 it adds only 8. why does it happen?

by the way if there are easier challenges you know of to practice my reverse engineering skills i would really appreciate a link thanks!


Solution

  • Hexadecimal. 0x10 is 16; 0x8 is 8.