Hi,
I am supposed to convert provided assembly code into C++ code and I am struggling with it. The main thing I am confused about is that each block of this code begins with moving the value at base pointer minus 8 into the eax register, but I don’t know what value that is. Should I just declare a variable and I don’t need to know the actual value for the rest of the instructions in the assembly code? I also don’t totally understand the the sall instruction which is probably adding to my confusion. I’ve attached a word document with the assembly code I am struggling with. If you are able to fill this out with the C++ code and explanation that would be extremely helpful.
Thank you


0 comments