Search
Latest topics
computer's hardware understand it's base code in the first place?
Page 1 of 1
computer's hardware understand it's base code in the first place?
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
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
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Thu Jun 02, 2011 5:27 am by chanelbags200
» Coach Shoes received rewards
Thu Apr 07, 2011 7:30 am by chanelbags200
» Coach Handbags brought close
Thu Mar 24, 2011 2:43 pm by chanelbags200
» Silver necklace making up
Sat Feb 26, 2011 11:00 am by chanelbags200
» ExMortis 2
Thu Feb 03, 2011 5:52 pm by Siddique
» Wholesale air max 97 particulars from
Fri Jan 21, 2011 8:58 pm by chanelbags200
» Wholesale Nike Air Shox interest in
Fri Jan 21, 2011 3:04 am by chanelbags200
» hardware device is used with USB ports to capture keyboard strokes?
Mon Dec 13, 2010 6:12 am by Siddique
» hardware stores sell glass you can have them custom cut for you?
Mon Dec 13, 2010 6:12 am by Siddique