Command Palette
Search for a command to run...
Comments
Join the discussionNo comments yet. Be the first to comment.
More from this blog
How to Write a Hello World Program in Assembly Language
Now, let's look at the traditional "hello, world" program in programming. I'm not a big fan of it, but it's basic and helps us see the output on the terminal for the first time, so it's fine here. Below is a simple C++ code example, which is consider...
How to Return a Custom Exit Code in Your Program
Another simple program involves returning a specific number instead of the usual 0. Here is the equivalent code in C++ for that: #include <iostream> using namespace std; int main() { return 5; } The same code we used to return 0 in assembly wil...
Return Zero in Assembly
The most basic program in assembly or any programming language is a "return 0" program. Here is an example in C++: int main() { return 0; } To write the equivalent program in GNU assembly, it would look like this: .global _start _start: mov...
Bare Metal Assembly
4 posts