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

Installing A Printer

Go to Control Panel Click Printer Option Click Add a Printer Click Add Local Printer Select Port Select The Printer & click Next Click Next Installation Wizard Appears Now The Printer is Successfully Installed You can see your installed Printer icon in printer wizard in control panel

Increase Hard Disk speed in Windows

If you like to increase/optimize your Hard Disk I/O - read/write speed without buying expensive software utilities to do that job or changing the HD, just follow next steps. With doing these steps you will increase Hard disk speed (depends of manufacture and specification, but its worth to try). The most speed improvement is visible with IDE drives; however there are reports that this tweak also does good for SCSI disks. In any case, it won't harm your system, so try it yourself and let me know what you find! Steps: Run SYSEDIT.EXE from the start & then Run command. Expand the system.ini file window. Scroll down almost to the end of the file untill you find a line called [386enh]. Press Enter to make one blank line, and in that line type Irq14=4096 (note: This line IS CASE SENSITIVE) Click on the File menu, then choose Save. Close SYSEDIT and reboot your computer. Restart windows! The speed improvement will be noticed just after the system reboots, any system info. software can...

Things to Do with An Old PC

Donate It One of the best things to do with an old PC? Donate it to your local charity. There are many, many families out there who do not have the luxury of owning even a basic computer system. Do your part to help them get into the world of computers. One important note about donating computers - make sure you clear out and delete any personal information on the drive. Simple deletion is not sufficient - you will need a powerful data erasing tool like Active@ KillDisk - Hard Drive Eraser. Trade It In There are many computer dealers (e.g. HP) which offer trade-in promotions on computers and peripherals. Before you buy a new PC, see if the retailer can offer you any trade-in discounts. As long as your old computer is in decent condition, it can fetch some money. 'Decent condition' usually refers to any Pentium-class notebook or desktop with a hard drive, monitor, keyboard, and mouse. Auction It Another option is to sell the computer on eBay or an equivalent auction site. eBay i...