CP Hangout
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Coach Handbags which look
computer's hardware understand it's base code in the first place? EmptyThu Jun 02, 2011 5:27 am by chanelbags200

» Coach Shoes received rewards
computer's hardware understand it's base code in the first place? EmptyThu Apr 07, 2011 7:30 am by chanelbags200

» Coach Handbags brought close
computer's hardware understand it's base code in the first place? EmptyThu Mar 24, 2011 2:43 pm by chanelbags200

» Silver necklace making up
computer's hardware understand it's base code in the first place? EmptySat Feb 26, 2011 11:00 am by chanelbags200

» ExMortis 2
computer's hardware understand it's base code in the first place? EmptyThu Feb 03, 2011 5:52 pm by Siddique

» Wholesale air max 97 particulars from
computer's hardware understand it's base code in the first place? EmptyFri Jan 21, 2011 8:58 pm by chanelbags200

» Wholesale Nike Air Shox interest in
computer's hardware understand it's base code in the first place? EmptyFri Jan 21, 2011 3:04 am by chanelbags200

» hardware device is used with USB ports to capture keyboard strokes?
computer's hardware understand it's base code in the first place? EmptyMon Dec 13, 2010 6:12 am by Siddique

» hardware stores sell glass you can have them custom cut for you?
computer's hardware understand it's base code in the first place? EmptyMon Dec 13, 2010 6:12 am by Siddique

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
free forum
 

computer's hardware understand it's base code in the first place?

Go down

computer's hardware understand it's base code in the first place? Empty computer's hardware understand it's base code in the first place?

Post by Siddique Mon Dec 13, 2010 6:11 am

It's hard to explain this to someone who's had little experience with digital logic circuits. To fully understand this, you need to read up on logic gates, boolean algebra, CPU and bus architecture.

I'll try to keep it simple. The base language of a computer is machine code. The part of the computer that actually "understands" and executes machine code is the CPU.

Machine codes consist of numbers: opcodes and arguments. For example "254" is a x86 instruction meaning "decrease by 1".

The CPU itself consists of a complex network of logic gates (basic digital devices that combine and manipulate bits of data). When the CPU reads an opcode of 254, it sees it as a binary bit-pattern: 11111110. Each of those bits is sent down its own wire (bus) into a logic-gate network (instruction decoder) which is connected in such a way that an input of 254 would activate the "decrease by 1" mechanism; an input of, say, 14 would activate the "multiply by" mechanism, etc.

In short, the CPU is hardwired to respond to specific patterns of bits which we call machine code. If you ever take a digital circuit course, you will likely build a basic 4-bit CPU for your final project.






________________
turbulence-training-review



Siddique
Penguin

Number of posts : 21
Registration date : 2010-12-02

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum