Write Assembly Language Program to print “Hello World” program.


16 Bit Code .model small ;defines the memory model to be used for the ALP .data ;data segment begins here msg db 10d,13d,”Hello World$” ;String Hello World gets stored in msg .code ;code segment begins here mov ax,@data ;moving base address of data to ax mov ds,ax ;moving contents of ax into ds ;data section now gets initialized lea dx,msg ;load the offset address of … Continue reading Write Assembly Language Program to print “Hello World” program.

Assemblers : A Quick Guide


Currently there are multiple Assemblers available in the market. Some popular ones are NASM, YASM and TASM. NASM General Introduction : The Netwide Assembler (NASM) is an assembler and disassembler for the Intel x86 architecture. It can be used to write 16-bit, 32-bit (IA-32) and 64-bit (x86-64) programs. NASM is considered to be one of the most popular assemblers for Linux. NASM was originally written … Continue reading Assemblers : A Quick Guide

Doubly Circular Linked List


Doubly Circular linked list has both the properties of doubly linked list and circular linked list. Two consecutive elements are linked by previous and next pointer and the last node points to first node by next pointer and also the previous pointer of the head node points to the tail node. Node traversal from any direction is possible and also jumping from head to tail … Continue reading Doubly Circular Linked List

Single Linked List


Linked List is a collection of data elements, called Nodes pointing to the next nodes by means of Pointers. Linked List overcomes the drawback of predetermined number of elements. In Linked List, More memory can be allocated and released during run time when required. Problem Statement: Write a program in C++ to Implement Single Linked List.  /*  * SingleLinkedList.cpp  *  * Created on: 28-Jun-2015  * … Continue reading Single Linked List

Assembly Language Programming


An assembly language (or assembler language) is a low-level programming language for a computer, or other programmable device, in which there is a very strong (generally one-to-one) correspondence between the language and the architecture’s machine code instructions. According to x86 Architecture, There are 3 types of bit model and segmentation, which are 16, 32 and 64. The ALP is followed with using different available registers … Continue reading Assembly Language Programming

Increment Operator (‘++’) Overloading


Increment Operator “++” can be overloaded using Friend Functions. Following C++ program shows Increment Operator Overloading for Prefix and Postfix Increment Operators. Problem Statement: Write a program in c++ in which you should create the complex class and overload the ‘++’ operator (both the postfix and prefix increment operators using friend functions)? /*  * Source.cpp  *  * Created on: 03-Jun-2015  * Author: omkarnathsingh  */ #include<iostream> using … Continue reading Increment Operator (‘++’) Overloading