Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Machine language

Status
Not open for further replies.

mehdiinlove

New Member
Hello to all electronics lovers

how machine codes (or instructions or Assembly language )for example "LD A,(2000H) in Z80 Microprocessor" is translated to the hardware?I mean how hardware realise that above instruction must be translated to an action in hardware?what process does happen in this action?

Regards
 
mehdiinlove said:
Hello to all electronics lovers

how machine codes (or instructions or Assembly language )for example "LD A,(2000H) in Z80 Microprocessor" is translated to the hardware?I mean how hardware realise that above instruction must be translated to an action in hardware?what process does happen in this action?

Regards
It starts with a process called decoding. A circuit looks at the bits of an instruction and decides it is a load instruction. The signal which says "LD" instruction turns on a gateway to fetch a byte from meoory by putting an address on the address bus, and activating the RD* strobe at the correct time. When the data from the memory is stable, another gateway allows the data from the memory which is now on the Z80's data bus to be routed into the Accumulator. All the other instructions are variations on this theme.
 
Status
Not open for further replies.

Latest threads

Back
Top