Assembly Language Tutorial

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

A short, good reference to start learning Assembly language. this is www.tutorialspoint.com topic about learning Assembly language.

Author(s): tutorialspoint
Series: tutorialspoint
Publisher: tutorialspoint
Year: 2014

Language: English
Pages: 81
Tags: Assembly

Prerequisites......Page 3
Copyright & Disclaimer Notice......Page 4
Advantages of Assembly Language......Page 9
The Hexadecimal Number System......Page 10
Binary Arithmetic......Page 11
Addressing Data in Memory......Page 12
Installing NASM......Page 14
Comments......Page 16
The Hello World Program in Assembly......Page 17
Compiling and Linking an Assembly Program in NASM......Page 18
Memory Segments......Page 19
Data Registers......Page 21
Index Registers......Page 22
Segment Registers......Page 23
Example:......Page 24
Linux System Calls......Page 25
Example......Page 26
Immediate Addressing......Page 28
SYNTAX:......Page 29
EXAMPLE:......Page 30
Allocating Storage Space for Initialized Data......Page 32
Multiple Definitions......Page 33
Multiple Initializations......Page 34
Example:......Page 35
The %define Directive......Page 36
EXAMPLE:......Page 38
EXAMPLE:......Page 39
SYNTAX:......Page 41
EXAMPLE:......Page 42
SYNTAX:......Page 43
EXAMPLE:......Page 44
The AND Instruction......Page 46
The OR Instruction......Page 47
The XOR Instruction......Page 48
The NOT Instruction......Page 49
EXAMPLE:......Page 50
Conditional Jump......Page 51
Example:......Page 52
Example:......Page 54
Assembly Numbers......Page 56
ASCII Representation......Page 57
Example:......Page 58
String Instructions......Page 60
MOVS......Page 61
LODS......Page 62
CMPS......Page 63
SCAS......Page 64
Repetition Prefixes......Page 65
Assembly Arrays......Page 66
Example:......Page 67
Example:......Page 68
Stacks Data Structure:......Page 69
EXAMPLE:......Page 70
Assembly Recursion......Page 71
Assembly Macros......Page 73
Example:......Page 74
File Handling System Calls......Page 75
Reading from a File......Page 76
Updating a File......Page 77
Example:......Page 78
Example:......Page 80