This article describes general purpose advice for reading and understanding assembly code, in particular in the scope of CPSC 213.

Step 1

Comment the code. Line by line, effectively translate the symbols to a more readable format or English like equivalent. Whatever makes intuitive sense.

Step 2

Make the code look more C - like or more meaningful.

Step 3

Look for basic blocks by examining branches and draw the branches as arrows if possible.

Step 4

Associate the code and control structure with even more C - like structure

Step 5

Deal with what is left and simplify.