Tips for reading ASM code?

I have an exam for assembling the Motorola HC12 build code. Any tips to improve your time in reading and understanding asm code efficiently and accurately? My problems: I read asm code for a long time for sure, and if I am in a hurry, my stack is messed up!

+5
source share
4 answers

ASM code is hard to read. There is no magic thing that makes decryption easy.

The only tips I can give you: add a lot of comments to the code. Document what the sequence of instructions does. Do not focus on the instructions themselves unless you need to.

. , , . , .

+7

. Atari 2600, , , .

, .

+3

. , (), , , . , "" Motorola, .

+2

Since this is an exam, deal with it like any other exam - organize! You should be able to quickly identify code blocks. Start with branch / return instructions that disrupt the flow of control. They usually refer to loop routines or labels. Once you have an idea of ​​how the code flows, then figure out what it does in each block.

+2
source

All Articles