Skip to main content

Microprocessor Instructions

Even the incredibly simple microprocessor shown in the previous example will have a fairly large set of instructions that it can perform. The collection of instructions is implemented as bit patterns, each one of which has a different meaning when loaded into the instruction register. Humans are not particularly good at remembering bit patterns, so a set of short words are defined to represent the different bit patterns. This collection of words is called the assembly language of the processor. An assembler can translate the words into their bit patterns very easily, and then the output of the assembler is placed in memory for the microprocessor to execute.

Here's the set of assembly language instructions that the designer might create for the simple microprocessor in our example:
  • LOADA mem - Load register A from memory address
  • LOADB mem - Load register B from memory address
  • CONB con - Load a constant value into register B
  • SAVEB mem - Save register B to memory address
  • SAVEC mem - Save register C to memory address
  • ADD - Add A and B and store the result in C
  • SUB - Subtract A and B and store the result in C
  • MUL - Multiply A and B and store the result in C
  • DIV - Divide A and B and store the result in C
  • COM - Compare A and B and store the result in test
  • JUMP addr - Jump to an address
  • JEQ addr - Jump, if equal, to address
  • JNEQ addr - Jump, if not equal, to address
  • JG addr - Jump, if greater than, to address
  • JGE addr - Jump, if greater than or equal, to address
  • JL addr - Jump, if less than, to address
  • JLE addr - Jump, if less than or equal, to address
  • STOP - Stop execution

Comments

Popular posts from this blog

Computer Network

What is a Network? A network is a connection between terminals, computers, servers, and components which allows for the easy flow of data and use of resources between one another. Different networks that we come across in our day to day life are telephone network, cable T.V network, transport network of a city etc. Understanding the Concept of Networking The idea of networking has been around for a long time and has taken on many meanings. If you were to look up "network" in your dictionary, you might find any of the following definitions: An openwork fabric; netting A system of interlacing lines, tracks, or channels Any interconnected system; for example, a television-broadcasting network A system in which a number of independent computers are linked together to share data and peripherals, such as hard disks and printers Obviously, the last definition is the one we are concerned with in this course. The key word in the definition is "share." Sharing is the purpose ...

map network drive in windows 7

Map Network drive is very useful in networking, it helps to access regular usable folder on one click on My Computer. This feature is used in LAN Steps to Map a Network drive Step1 go to Computer select Tools (Alt+F) -> Map Network Drive Step 2 Select the Drive letter which u want to assign for Ex H: Browse the Folder which you want to Map the drive  Then ok It will be appeared in My Computer or Computer

Best Antivirus

Hello Friends here are some best antivirus mentioned below i recommended to use ESET NOD32 ANTIVIRUS  - First check your windows version x86 or x64 before downloading BITDEFENDER ANTIVIRUS    AVAST ANTIVIRUS - After installing you register to get 1 year free KASPERSKY AVG ANTIVIRUS  - Its a free edition..  In above all of these i recommend you ESET NOD32 for fastest performance & AVAST for free Version they giving for 1 year free its really good they do. click on the antivirus to download trail versions. Download Links are with the help of Softpedia.