Posts in Year 2006
x86-64 TUTORIAL: HILBERT MATRIX
The aim of solving this problem is to learn how to use the |
Posted on by Vikas N. Kumar. |
LABOUCHERE SYSTEM PROGRAM USING x86-64 REGISTERS
This program does not use any fixed memory locations for the head or tail of the
link list, but uses all the registers available to it. However, for some of the
functions it does not follow the convention of saving all the registers |
Posted on by Vikas N. Kumar. |
LABOUCHERE SYSTEM C PROGRAM
Here is the full C code for the Doubly Linked List: Labouchere System. Read More → |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: DOUBLY LINKED LIST
THE LABOUCHERE SYSTEMThe Labouchere system for roulette is played as follows. Write down a list of
numbers, usually |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: FACTORIAL WITH RECURSION
The calculation of a factorial of a number can be done using recursion. Below is the algorithm: Read More → |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: CONDITIONAL OPERATIONS WITHOUT BRANCHING
The regular |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: BIT SHIFTING OPERATIONS
Logical shifts are operations in which the bits of a register or memory location
are moved to the right or left by a certain number or a value in the |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: FIND PRIME NUMBERS
Below is a code snippet that prints a list of prime numbers, one on each line,
based on a limit entered by the user. It uses both while loops and conditional
branch |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: MULTIPLICATION & DIVISION
In the Hello World sample
program we had used the instructions |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: INPUT OUTPUT FUNCTIONS
Here are some print functions for strings, integers and newline characters.
There is also a function for reading an integer. All the code is in
NASM’s syntax.
The macros NOTE: Remember that the registers |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: HELLO WORLD!
Below is a program that prints |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: CPUID
The x86 and x86-64 instruction sets have an instruction called |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: CALLING CONVENTIONS
SYSTEM CALLSSystem calls are made using the |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: ASSEMBLERS
2020 UPDATEIn 2006, there was only YASM that supported both the 32-bit |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: ABI
ABI is an abbreviation for Application Binary Interface. Every processor’s instruction set has an ABI. This allows the developer to write code in the correct format that the processor is designed to accept. The x86-64 ABI document can be found at the following links: Read More → |
Posted on by Vikas N. Kumar. |
x86-64 TUTORIAL: INTRODUCTION
This is a sort of tutorial on programming in assembly using the
|
Posted on by Vikas N. Kumar. |