Statement:Write a program to shift a 16 bit data, 1 bit right. Assume that data is in BC register pair.
Saturday, May 30, 2009
Write a program to shift an eight bit data four bits right. Assume that data is in register C.
Statement:Write a program to shift a 16 bit data, 1 bit right. Assume that data is in BC register pair.
Thursday, May 28, 2009
Two digit BCD number is stored in memory location 4200H. Unpack the BCD number and store the two digits in memory locations 4300H and 4301H such that
Sample problem
Pack the two unpacked BCD numbers stored in memory locations 4200H and 4201H and store result in memory location 4300H. Assume the least significant d
Sample problem:
Source program
Find the 2's complement of the number stored at memory location 4200H and store the complemented number at memory location 4300H.
Find the l's complement of the number stored at memory location 4400H and store the complemented number at memory location 4300H.
Subtract the 16-bit number in memory locations 4002H and 4003H from the 16-bit number in memory locations 4000H and 4001H. The most significant eight
Sample problem
Sunday, May 24, 2009
Statement: Add the 16-bit number in memory locations 4000H and 4001H to the 16-bit number in memory locations 4002H and 4003H. The most significant ei
Saturday, May 23, 2009
Statement: Exchange the contents of memory locations 2000H and 4000H
Statement: Store the data byte 32H into memory location 4000H.
Monday, May 18, 2009
Intel 8085 microprocessor architecture
Memory
Program, data and stack memories occupy the same memory space. The total addressable memory size is 64 KB.
Program memory - program can be located anywhere in memory. Jump, branch and call instructions use 16-bit addresses, i.e. they can be used to jump/branch anywhere within 64 KB. All jump/branch instructions use absolute addressing.
Data memory - the processor always uses 16-bit addresses so that data can be placed anywhere.
Stack memory is limited only by the size of memory. Stack grows downward.
The processor has 5 interrupts. They are presented below in the order of their priority (from lowest to highest):
INTR is maskable 8080A compatible interrupt. When the interrupt occurs the processor fetches from the bus one instruction, usually one of these instructions:
- One of the 8 RST instructions (RST0 - RST7). The processor saves current program counter into stack and branches to memory location N * 8 (where N is a 3-bit number from 0 to 7 supplied with the RST instruction).
- CALL instruction (3 byte instruction). The processor calls the subroutine, address of which is specified in the second and third bytes of the instruction.
RST5.5 is a maskable interrupt. When this interrupt is received the processor saves the contents of the PC register into stack and branches to 2Ch (hexadecimal) address.
RST6.5 is a maskable interrupt. When this interrupt is received the processor saves the contents of the PC register into stack and branches to 34h (hexadecimal) address.
RST7.5 is a maskable interrupt. When this interrupt is received the processor saves the contents of the PC register into stack and branches to 3Ch (hexadecimal) address.
Trap is a non-maskable interrupt. When this interrupt is received the processor saves the contents of the PC register into stack and branches to 24h (hexadecimal) address.
All maskable interrupts can be enabled or disabled using EI and DI instructions. RST 5.5, RST6.5 and RST7.5 interrupts can be enabled or disabled individually using SIM instruction.
First 64 bytes in a zero memory page should be reserved for vectors used by RST instructions.
256 Input ports
256 Output ports
Accumulator or A register is an 8-bit register used for arithmetic, logic, I/O and load/store operations.
Flag is an 8-bit register containing 5 1-bit flags:
- Sign - set if the most significant bit of the result is set.
- Zero - set if the result is zero.
- Auxiliary carry - set if there was a carry out from bit 3 to bit 4 of the result.
- Parity - set if the parity (the number of set bits in the result) is even.
- Carry - set if there was a carry during addition, or borrow during subtraction/comparison.
General registers:
- 8-bit B and 8-bit C registers can be used as one 16-bit BC register pair. When used as a pair the C register contains low-order byte. Some instructions may use BC register as a data pointer.
- 8-bit D and 8-bit E registers can be used as one 16-bit DE register pair. When used as a pair the E register contains low-order byte. Some instructions may use DE register as a data pointer.
- 8-bit H and 8-bit L registers can be used as one 16-bit HL register pair. When used as a pair the L register contains low-order byte. HL register usually contains a data pointer used to reference memory addresses.
Stack pointer is a 16 bit register. This register is always incremented/decremented by 2.
Program counter is a 16-bit register.
8085 instruction set consists of the following instructions:
- Data moving instructions.
- Arithmetic - add, subtract, increment and decrement.
- Logic - AND, OR, XOR and rotate.
- Control transfer - conditional, unconditional, call subroutine, return from subroutine and restarts.
- Input/Output instructions.
- Other - setting/clearing flag bits, enabling/disabling interrupts, stack operations, etc.
Register - references the data in a register or in a register pair.
Register indirect - instruction specifies register pair containing address, where the data is located.
Direct.
Immediate - 8 or 16-bit data.
Types of Microprocessors
Complex Instruction Set Computer (CISC)
Where most of the work is to perform by Microprocessor itself, the philosophy reduced the Line of Codes or instruction and burden processor to perform most of the task. CISC architecture was first used by Digital Equipment Corporation PDP 11 family of minicomputers.
Reduced Instruction Set Computer (RISC)
Where most of the work is to perform by the software itself, the load on a processor is very low and hence it is called future processors. The RISC architecture was used by Apple Corporation's Macintosh computers, IBM's RISC System/6000 workstations and Sun Microsystems's SPARC.
Very Long Instruction Word (VLIW)
In this architecture a compiler breaks instruction into basic operations to be performed by processor. VLIW is the next step of RISC. In this philosophy complication is moved from the hardware to the software so it reduces the hardware cost.
Superscalar Processors
They are competent of performing more than one instruction in each cycle. In this philosophy concept of cache, parallel processing and floating point were introduced.
Few other are
General Purpose Processor (GPP)
Special Purpose Processor (SPP)
Application-Specific Integrated Circuit (ASIC)
Application-Specific Instruction-set Processor (ASIP)
Digital Signal Processor (DSP)
Intel processor
Intel processor that belongs to the First Generation of Processors is 8088, 8086, 80186, 80188, and 8087. Intel processors 286, 80287 belong to Second Generation of Processors.
Third Generation microprocessor are 386SX, 386SL, 386DX. AMD 486 (5x86), Cyrix/TI. 486, 486SX, 486SX2, 487SX, 486SL, 486SL2, 486DX, 486DX2, 486DX4 belongs to the Fourth Generation of Microprocessor. Other different types of microprocessor are 486Pentium OD, Pentium 60/66, Pentium 75–200, Pentium MMX, Pentium Pro, Pentium II, Pentium II PE, Celeron, Celeron A, Celeron III, Pentium III, Pentium IIIE, Pentium Xeon, Pentium IIIE Xeon, AMD K5, AMD K6, AMD K6-2, AMD K6-3, AMD Athlon, AMD Duron, AMD Athlon 4 (Thunderbird), AMD Athlon 64 and 64 FX,Cyrix 6x8, Cyrix 6x86MX/MII, Cyrix III, NexGen Nx586, IDT Winchip, IDT Winchip2/2A.
Saturday, May 16, 2009
Microprocessor Progression: Intel
The computer you are using to read this page uses a microprocessor to do its work. The microprocessor is the heart of any normal computer, whether it is a desktop machine, a server or a laptop. The microprocessor you are using might be a Pentium, a K6, a PowerPC, a Sparc or any of the many other brands and types of microprocessors, but they all do approximately the same thing in approximately the same way.
A microprocessor -- also known as a CPU or central processing unit -- is a complete computation engine that is fabricated on a single chip. The first microprocessor was the Intel 4004, introduced in 1971. The 4004 was not very powerful -- all it could do was add and subtract, and it could only do that 4 bits at a time. But it was amazing that everything was on one chip. Prior to the 4004, engineers built computers either from collections of chips or from discrete components (transistors wired one at a time). The 4004 powered one of the first portable electronic calculators.
If you have ever wondered what the microprocessor in your computer is doing, or if you have ever wondered about the differences between types of microprocessors, then read on. In this article, you will learn how fairly simple digital logic techniques allow a computer to do its job, whether its playing a game or spell checking a document!
The first microprocessor to make it into a home computer was the Intel 8080, a complete 8-bit computer on one chip, introduced in 1974. The first microprocessor to make a real splash in the market was the Intel 8088, introduced in 1979 and incorporated into the IBM PC (which first appeared around 1982). If you are familiar with the PC market and its history, you know that the PC market moved from the 8088 to the 80286 to the 80386 to the 80486 to the Pentium to the Pentium II to the Pentium III to the Pentium 4. All of these microprocessors are made by Intel and all of them are improvements on the basic design of the 8088. The Pentium 4 can execute any piece of code that ran on the original 8088, but it does it about 5,000 times faster!
The following table helps you to understand the differences between the different processors that Intel has introduced over the years.
8-bit bus | ||||||
64-bit bus | ||||||
64-bit bus | ||||||
64-bit bus | ||||||
64-bit bus | ||||||
64-bit bus |
Compiled from The Intel Microprocessor Quick Reference Guide and TSCP Benchmark Scores
Information about this table:
- The date is the year that the processor was first introduced. Many processors are re-introduced at higher clock speeds for many years after the original release date.
- Transistors is the number of transistors on the chip. You can see that the number of transistors on a single chip has risen steadily over the years.
- Microns is the width, in microns, of the smallest wire on the chip. For comparison, a human hair is 100 microns thick. As the feature size on the chip goes down, the number of transistors rises.
- Clock speed is the maximum rate that the chip can be clocked at. Clock speed will make more sense in the next section.
- Data Width is the width of the ALU. An 8-bit ALU can add/subtract/multiply/etc. two 8-bit numbers, while a 32-bit ALU can manipulate 32-bit numbers. An 8-bit ALU would have to execute four instructions to add two 32-bit numbers, while a 32-bit ALU can do it in one instruction. In many cases, the external data bus is the same width as the ALU, but not always. The 8088 had a 16-bit ALU and an 8-bit bus, while the modern Pentiums fetch data 64 bits at a time for their 32-bit ALUs.
- MIPS stands for "millions of instructions per second" and is a rough measure of the performance of a CPU. Modern CPUs can do so many different things that MIPS ratings lose a lot of their meaning, but you can get a general sense of the relative power of the CPUs from this column.
|
The F-14A “Tom Cat” Microprocessor
Designed and Developed 1968-1970. This site describes the design work for a MOS-LSI microprocessor chip set designed starting June 1968 and completed by June 1970. This highly integrated computer chip set was designed for the US Navy F14A “TomCat” fighter jet by Mr. Steve Geller and Mr. Ray Holt while working for Garrett AiResearch Corp under contract from Grumman Aircraft, the prime contractor for the US Navy. The MOS-LSI chips were manufactured by American Microsystems, Inc of Santa Clara, California.
The MOS-LSI chip set was part of the Central Air Data Computer (CADC) which had the function of controlling the moving surfaces of the aircraft and the displaying of pilot information. The CADC received input from five sources, 1) static pressure sensor, dynamic pressure sensor, analog pilot information, temperature probe, and digital switch pilot input. The output of the CADC controlled the moving surfaces of the aircraft. These were the wings, maneuver flaps, and the glove vane controls. The CADC also controlled four cockpit displays for, Mach Speed, Altitude, Air Speed, and Vertical Speed. The CADC was a redundant system with real-time self-testing built-in. Any single failure from one system would switch over to the other.
Two state-of-the-art quartz sensors, a 20-bit high precision analog-to-digital converter, a 20-bit high precision digital-to-analog converter, the MOS-LSI chip set, and a very efficient power unit made up the complete CADC. A team of over 25 managers, engineers, programmers, and technicians from AiResearch and American Microsystems labored for three years to accomplish a design feat never before attempted, a complete state-of-the-art, highly integrated, digital air data computer. Previous designs were based around mechanical technology, consisting of precision gears and cams.
In 1971, Mr. Ray Holt wrote a design paper on the MOS-LSI chip set design which was approved for publication by Computer Design magazine. However, because of national security reasons the U.S. Navy would not approve this paper for publication. Mr. Holt attempted again in 1985 to have the paper cleared and the answer again was no. Finally, in April 1997, he started the process again and this time was able to receive clearance for publication as of April 21, 1998.
The entire contents of this original 1971 paper, “Architecture Of A Microprocessor“, is made available here. The first public announcement of the F14A MOS-LSI microprocessor chip set was a published article by the Wall Street Journal on September 22, 1998. This paper and the details of the design were first presented publicly by Mr. Ray Holt at the Vintage Computer Festival held at the Santa Clara Convention Center on September 26-27, 1998.
Many thanks to Mr. Sam Ismail of the Vintage Computer Festival for, not only his believability of this design, but for his hard work in making it a significant announcement in the microprocessor world.
The F-14A “Tom Cat” Microprocessor
Designed and Developed 1968-1970. This site describes the design work for a MOS-LSI microprocessor chip set designed starting June 1968 and completed by June 1970. This highly integrated computer chip set was designed for the US Navy F14A “TomCat” fighter jet by Mr. Steve Geller and Mr. Ray Holt while working for Garrett AiResearch Corp under contract from Grumman Aircraft, the prime contractor for the US Navy. The MOS-LSI chips were manufactured by American Microsystems, Inc of Santa Clara, California.
The MOS-LSI chip set was part of the Central Air Data Computer (CADC) which had the function of controlling the moving surfaces of the aircraft and the displaying of pilot information. The CADC received input from five sources, 1) static pressure sensor, dynamic pressure sensor, analog pilot information, temperature probe, and digital switch pilot input. The output of the CADC controlled the moving surfaces of the aircraft. These were the wings, maneuver flaps, and the glove vane controls. The CADC also controlled four cockpit displays for, Mach Speed, Altitude, Air Speed, and Vertical Speed. The CADC was a redundant system with real-time self-testing built-in. Any single failure from one system would switch over to the other.
Two state-of-the-art quartz sensors, a 20-bit high precision analog-to-digital converter, a 20-bit high precision digital-to-analog converter, the MOS-LSI chip set, and a very efficient power unit made up the complete CADC. A team of over 25 managers, engineers, programmers, and technicians from AiResearch and American Microsystems labored for three years to accomplish a design feat never before attempted, a complete state-of-the-art, highly integrated, digital air data computer. Previous designs were based around mechanical technology, consisting of precision gears and cams.
In 1971, Mr. Ray Holt wrote a design paper on the MOS-LSI chip set design which was approved for publication by Computer Design magazine. However, because of national security reasons the U.S. Navy would not approve this paper for publication. Mr. Holt attempted again in 1985 to have the paper cleared and the answer again was no. Finally, in April 1997, he started the process again and this time was able to receive clearance for publication as of April 21, 1998.
The entire contents of this original 1971 paper, “Architecture Of A Microprocessor“, is made available here. The first public announcement of the F14A MOS-LSI microprocessor chip set was a published article by the Wall Street Journal on September 22, 1998. This paper and the details of the design were first presented publicly by Mr. Ray Holt at the Vintage Computer Festival held at the Santa Clara Convention Center on September 26-27, 1998.
Many thanks to Mr. Sam Ismail of the Vintage Computer Festival for, not only his believability of this design, but for his hard work in making it a significant announcement in the microprocessor world.
Friday, May 15, 2009
Microprocessors - History and Technology
How Microprocessors Work
From Intel's educational program.
The History of the Microcomputer - Invention and Evolution
Intel's founder, Robert Noyce, chartered Ted Hoff's Applications Research Department in 1969 to find new applications for silicon technology -the microcomputer was the result - written by Stanley Mazor.
Chronology of Events in the History of Microcomputers
Timeline maintained by Copyright (C) 1994-98 Ken Polsson.
Computers have changed in their ability in one simple dimension. They've become faster, and in a very predictable manner. The number of devices of a chip - that is the circuit elements in a logic circuit - Gordon Moore predicted with incredible perspicacity in 1965 to double every 18 months.
Intel's Processors Hall of Fame
Find fast facts about Intel's family of microprocessors from the 4004 chip to the Pentium® II processor. Intel's first money making product, was the 3101 Schottky bipolar 64-bit static random access memory (SRAM) chip.
Moore's Law
The origin, nature, and implications of Moore's Law. The benchmark of progress in the semiconductor electronics.
Federico Faggin, Stanley Mazor and Ted Hoff
Federico Faggin
Microprocessor Concept and Architecture Patent No.: 3,821,715 - National Inventors Hall of Fame. Federico Faggin, currently CEO of Synaptics, led the design and development of the world's first microprocessor, the Intel 4004 and conceived and supervised the design of the landmark 8080, the first modern microprocessor.
- Federico Faggin - biography
- Marcian E. (Ted) Hoff - biography
- Stanley Mazor - biography
Intel's founder, Robert Noyce, chartered Ted Hoff's Applications Research Department in 1969 to find new applications for silicon technology -the microcomputer was the result.
Article by Federico Faggin - The Future of the Microprocessor
Gordon Moore and Bob Noyce
Moore is widely known for "Moore's Law," in which he predicted that the number of transistors the industry would be able to place on a computer chip would double every year. In 1995, he updated his prediction to once every two years. While originally intended as a rule of thumb in 1965, it has become the guiding principle for the industry to deliver ever-more-powerful semiconductor chips at proportionate decreases in cost.
Moore earned a B.S. in Chemistry from the University of California at Berkeley and a Ph.D. in Chemistry and Physics from the California Institute of Technology. He was born in San Francisco, Calif., on Jan. 3, 1929.
- Gordon Moore - biography
Interview by Jill Wolfson, San Jose Mercury News; and Teo Cervantes, James Lick High School.
Intel
The History of Intel: Intel's 30th Anniversary
The history of Intel and thirty years of innovation.
The History of Intel
The two founders decided upon the name "Intel" for their new company, a shortened version of "integrated electronics".