ASSEMBLY LANGUAGE BASICS

Thu, January 26th 2012, 11:04 AM

Forum Post

Abdul Ajmal
Member@Technical

Join Date: November 2011
Posts: 9

Hello guys,

This post is for the beginners so that they could brush up about the assembly language.Assembly language primer cannot be exhaustively explained in this single post.So I’d advise you to do read the upcoming posts.

 

  • SYSTEM ORGANISATION BASICS:

So in any system we’l have the Central processing unit(CPU),Memory where things are stored at run-time and we have the I/O devices such as keyboard,monitor etc..,

  • CPU

The CPU consists of four parts namely:

    1. Control unit :- which is used for retrieving and decoding the instructions executed and also to retrieve and store data from memory
    2. Execution unit:- is a place where the actual working takes place.
    3. Registers:- when a CPU executes instructions it will need some internal memory locations to do calculations.We can assume that to be internal memory locations whose values keep changing according to the execution.
    4. Flags:- are used to indicate the event that is happening or executing currently.
  • CPU REGISTERS

The CPU contains 4 registers namely:

    1. General purpose registers:-

It contains 8 registers namely:

EAX: It is also known as the accumulator register used for storing operands and result data.

EBX: known as base register and used for storing pointer to data.

ECX: known as counter register and used in loop and String operations.

EDX: data registers used as i/o pointer

ESI: data pointer register used for memory operations(source index).

EDI: data pointer register used for memory operations(destination index).

ESP: Stack pointer register used for stack operations which points to the top of the stack.

EBP:is the stack data pointer register.

·        MEMORY

This contains the virtual memory model.When a program is being executed,it is laid out as a process in memory.Many processes are carried out in the same way.But what the CPU and the OS does is that it creates an abstraction such that each process feels that it is the only process being executed by the system and no other process exist.

 


About the Member

Abdul Ajmal
He is currently a Member of the Technical Team of the Blog

Social Plugins




Advertisement

Copyright 2011 - Innobuzz Knowledge Solutions (P) Limited | All Rights Reserved.