Part IV: Sending Function Arguments and Receiving a Return Value

This guide is part four of the series, X86–64 Assembly Language Program. Sending Function Arguments and Returning a Result In the previous post of this series, we saw how to define and call functions in x86–64 Assembly. Now I wanted to know how to provide arguments to a function and return values. In other words, when this is done in a higher-level language, how is it translated at the Assembly code level? ...

October 25, 2021 · 3 min

Part III: Printing Command Line Arguments

This guide is part three of the series, X86–64 Assembly Language Program. Now that we’ve set up an efficient development environment, it’s time to write some actual Assembly Language code. In this guide, I’ll share the resources and processes I followed to build a simple Assembly Language program. Printing Command Line Arguments In order to demonstrate the concepts let’s write an assembly program that counts the number of unique words in a text file whose name is provided as an argument. ...

September 25, 2021 · 6 min

Part II: Finding an Efficient Development Cycle for writing Assembly Language

This guide is part two of the series, X86–64 Assembly Language Program. Now that GDB is working well with Docker, the next step is to find a development cycle that enables you to quickly run code and debug it if needed. I prefer to develop within VS Code rather than having to develop directly on the Docker container with vim. The question is how to develop on VS Code, then quickly compile, link, run and debug the code on the docker container that is now set up? ...

September 17, 2021 · 3 min

Part I: Getting Started Writing Assembly Language

This guide is part one of the series, X86–64 Assembly Language Program. This is a guide to setting up a low friction development environment to simplify writing and debugging assembly language programs. Why Learn Assembly Language He who hasn’t hacked assembly language as a youth has no heart Learning assembly language improves one’s foundational understanding of software. With improved fundamentals, you can judge the utility of upcoming technologies more accurately which I think is a super important skill set. Making the right bets on which technologies come to dominate means you can more optimally invest your time and even money. For example, it’s well known that those with a fundamental understanding of the cryptocurrency space immediately understood the value of blockchain and literally made millions of dollars with nearly no additional effort. ...

September 12, 2021 · 6 min