| Author |
Message |
saeddawoud
Joined: 27 Apr 2007 Posts: 156 Helped: 3
|
27 Jun 2007 14:28 Hardware/Software interface |
|
|
|
|
Hello
we know when writting in high-level language the statements converted into assembly language using the compiler and then into machine code using assembler. ok, but what I can't understand how these binary digits converted into hardware actions.
Regards
|
|
| Back to top |
|
 |
Google AdSense

|
27 Jun 2007 14:28 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
WzWzWz
Joined: 25 Aug 2006 Posts: 34 Helped: 1
|
27 Jun 2007 15:51 Hardware/Software interface |
|
|
|
|
| U can add a protocol monitor to check the action compared to assemble code, then look out the high level language with disassemble tool.
|
|
| Back to top |
|
 |
phoenixfeng
Joined: 27 Mar 2004 Posts: 146 Helped: 9
|
28 Jun 2007 4:38 Hardware/Software interface |
|
|
|
|
you code was saved in file, and file is stored in some type media:harddisk or flash...etc.
we don't constrate on the storing process , but only see the charactor displayed on the screen, which has been translated by circuits
|
|
| Back to top |
|
 |
Arturi
Joined: 13 Sep 2006 Posts: 51 Helped: 4
|
28 Jun 2007 10:43 Re: Hardware/Software interface |
|
|
|
|
Hello,
this assembler/linker will generate a memory content with the instructions of your program. This instructions "binary words" will be fetched by the processor, then decoded. While decoding these instruction bits, electrical signals are driven to perform the execution of this very instruction. The execution will depend on the architecture of your CPU.
For example if the instruction is ADD R1, R2 (i.e., R1 = R1 + R2):
The ADD signal (or flag if you prefer) of the ALU will be set, other signals will select the ALU operands from the right registers (i.e., R1,R2) and the result will be latched back to R1.
Look for some computer architecture tutorial on the net. They will explain you much better than I possible can.
cheers
|
|
| Back to top |
|
 |
hawk_chenbo
Joined: 28 Sep 2004 Posts: 43 Helped: 2
|
03 Jul 2007 1:59 Hardware/Software interface |
|
|
|
|
| The binary code correpond to certain CPU intructions, which are implemented by hardware CPU.
|
|
| Back to top |
|
 |