Assembler Developer

Moderators: None (Apply to moderate this forum)
Number of threads: 1018
Number of posts: 1812

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
My First Assembly Tutorial on This Forum Posted by ForEverIslam on 2 Mar 2012 at 2:44 PM
+----------------------------------------------+
+ Author : Hamza Qdider +
+ Age : 18 years old +
+ Title of This Tutorial : CPU Architecture +
+----------------------------------------------+

Hi Guys ! I'm a new (beginner) in this forum . I'm from Morocco ,I'm 18 years old .
In this Tutorial ,I want to explain the CPU (Central Processing Unit ) Architecture ...
Firstly, I'm not sure that my English Language is correct ,because I'm a beginner in it too .
When we talk about CPU ,we can define it like a PC Heart . We'd better say : " The PC Brain "
not " The PC Heart ", it does a lot of operations ( addition ,division ,etc ...) . It diagnose many
information with an amazing speed .
All this advances are due to the technology developement over the last decades .
After this introductions ,I will start my explanation now :D

+ -------------------------------- +
1 - CPU Registers
+ ---------------------------------+
The CPU contains four General Purpose Registers ( I talk about 32 Bit Processor not 64 Bit ) .
Their size is 32 bit ( from 0 to 31 bit ) . Each register has divised in two part ( registers) , from 0 to 15 bit
and from 15 to 31 bit ,the part one ( 0 => 15 bit ) is divised in two part too ( from 0 to 7 bit and from 7 to 15 bit ),
look at this :
31 15 7 0
+++++++++++++++++ EAX ++++++++++++++++
+ +
++++++++++++++++++++++++++++++++++++++
+ AX +
++++++++++++++++
+ AH + AL +
++++++++++++++++

+-----------------------------------+
2 - The General Purpose Registers
+-----------------------------------+

EAX = Accumulator register ,It's size is 32 bit . It contains the AX Register ( 16 bit ) and AH (Accumulator High)
and AL (Accumulator Low) .

EBX = Base register ,It's size is 32 bit . It contains the BX Register ( 16 bit ) and BH (high register) & BL ( low register)

ECX = Counter register ,It's size is 32 bit . It contains the CX Register ( 16 bit ) and CH & CL ,we use this register
for making loops and so on ...

EDX = Data register ,It's size is 32 bit . It contains the DX Register ( 16 bit ) and DH & DL , we use this register
for puting our data in it . For example : put a message in DX ( mov dx,offset message).

In brief ,I want to give you this advice :D : " We usually use the EAX (AX) Register ,because it is the principal register hhhhhhhhhhhhhhh"

Eventually ,I want to say " I'm so sorry ,for my bad language ^_^ !!! " .

To Be Continued ...
Hamza Qdider

Report
Re: My First Assembly Tutorial on This Forum Posted by ForEverIslam on 2 Mar 2012 at 3:13 PM
Report
Re: My First Assembly Tutorial on This Forum Posted by ForEverIslam on 2 Mar 2012 at 3:18 PM
Download this Tutorial :





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.