I\'ve done my programming exam in C yesterday. There was a question I could not answer, and even though I\'ve studied today I can\'t come up with a solution.
So we h
Why not to surprise your teacher with very detailed explanation of what is happening ;)
...
mov eax, dword ptr [rbp - 16] ; get C
xor eax, -1 ; negate C
mov ecx, dword ptr [rbp - 8] ; get A
mov edx, ecx ; put A into edx
add edx, -1 ; add -1 to edx => A--
mov dword ptr [rbp - 8], edx ; store result inside A
sub eax, ecx ; substract from ~C what was the result of A--
mov dword ptr [rbp - 8], eax ; store it inside variable A
...