September 2017
Beginner to intermediate
290 pages
6h 58m
English
Once ready, let's build our first Assembly program on Linux. Create an Assembly source file named, for example, test.S.
Fill in the following code:
/* This is a multiline comment.*/// This is a single line comment.# Another single line comment.# The following line is not a necessity. .file "test.S" # Tell GAS that we are using an external function. .extern printf # Make some data - store message in data section 0 .datamsg: .ascii "Hello from Assembly language!xaxdx0" # Begin the actual code .text# Make main() publicly visible .globl main/* This is our main() function. It is important to mention, that we can't begin the program with ...
Read now
Unlock full access