5 hours ago · 7 min read1302 words · Tech · hide · 0 comments

Welcome back to our series on x86 assembly programming. If you are new, you can check out the series overview.In the previous part of this article, we covered some of the basics of x86 addressing modes, such as immediate addressing and direct memory addressing. This 2nd part continues where we left and completes the coverage of all the x86 addressing modes, along with all the caveats that you need to be aware of. Along the way, you will also implement some very interesting examples and exercises, such as parsing the command line arguments on the stack, implementing the magic 8-ball game, and implementing a lookup table in assembly.Here’s what we will learn:Indirect memory addressing: this is how pointers work in COffset-based addressing: this is how we access fields inside a structIndexed addressing: this is how we access elements of an arrayThe generalised addressing mode syntax in x86 assembly: all the other addressing modes are simplifications of this generalised syntaxLet’s start…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.