• Complain

it-ebooks - GeeksForGeeks Microprocessor Lecture Notes

Here you can read online it-ebooks - GeeksForGeeks Microprocessor Lecture Notes full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: iBooker it-ebooks, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    GeeksForGeeks Microprocessor Lecture Notes
  • Author:
  • Publisher:
    iBooker it-ebooks
  • Genre:
  • Year:
    2018
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

GeeksForGeeks Microprocessor Lecture Notes: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "GeeksForGeeks Microprocessor Lecture Notes" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

it-ebooks: author's other books


Who wrote GeeksForGeeks Microprocessor Lecture Notes? Find out the surname, the name of the author of the book and a list of all author's works by series.

GeeksForGeeks Microprocessor Lecture Notes — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "GeeksForGeeks Microprocessor Lecture Notes" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
GeeksForGeeks Microprocessor Lecture Notes

From: https://www.geeksforgeeks.org/microprocessor-tutorials/

Registers of 8085 microprocessor

A microprocessor is a multipurpose, programmable, clock-driven, register-based electronic device that reads binary instructions from a storage device called memory, accepts binary data as input and processes data according to those instructions and provide results as output. A 8085 microprocessor, is a second generation 8-bit microprocessor and is the base for studying and using all the microprocessor available in the market.

Registers in 8085:

(a) General Purpose Registers

The 8085 has six general-purpose registers to store 8-bit data; these are identified as- B, C, D, E, H, and L. These can be combined as register pairs BC, DE, and HL, to perform some 16-bit operation. These registers are used to store or copy temporary data, by using instructions, during the execution of the program.

(b) Specific Purpose Registers


  • Accumulator:
    The accumulator is an 8-bit register (can store 8-bit data) that is the part of the arithmetic and logical unit (ALU). After performing arithmetical or logical operations, the result is stored in accumulator. Accumulator is also defined as register A.
  • Flag registers:

    The flag register is a special purpose register and it is completely different - photo 1

    The flag register is a special purpose register and it is completely different from other registers in microprocessor. It consists of 8 bits and only 5 of them are useful. The other three are left vacant and are used in the future Intel versions.These 5 flags are set or reset (when value of flag is 1, then it is said to be set and when value is 0, then it is said to be reset) after an operation according to data condition of the result in the accumulator and other registers. The 5 flag registers are:

    1. Sign Flag: It occupies the seventh bit of the flag register, which is also known as the most significant bit. It helps the programmer to know whether the number stored in the accumulator is positive or negative. If the sign flag is set, it means that number stored in the accumulator is negative, and if reset, then the number is positive.
    2. Zero Flag:: It occupies the sixth bit of the flag register. It is set, when the operation performed in the ALU results in zero(all 8 bits are zero), otherwise it is reset. It helps in determining if two numbers are equal or not.
    3. Auxillary Carry Flag: It occupies the fourth bit of the flag register. In an arithmetic operation, when a carry flag is generated by the third bit and passed on to the fourth bit, then Auxillary Carry flag is set. If not flag is reset. This flag is used internally for BCD(Binary-Coded decimal Number) operations.

      Note This is the only flag register in 8085 which is not accessible by user.

    4. Parity FlagL: It occupies the second bit of the flag register. This flag tests for number of 1s in the accumulator. If the accumulator holds even number of 1s, then this flag is set and it is said to even parity. On the other hand if the number of 1s is odd, then it is reset and it is said to be odd parity.
    5. Carry Flag: It occupies the zeroth bit of the flag register. If the arithmetic operation results in a carry(if result is more than 8 bit), then Carry Flag is set; otherwise it is reset.

(c) Memory Registers

There are two 16-bit registers used to hold memory addresses. The size of these registers is 16 bits because the memory addresses are 16 bits. They are :

  • Program Counter: This register is used to sequence the execution of the instructions. The function of the program counter is to point to the memory address from which the next byte is to be fetched. When a byte (machine code) is being fetched, the program counter is incremented by one to point to the next memory location.
  • Stack Pointer: It is used as a memory pointer. It points to a memory location in read/write memory, called the stack. It is always incremented/decremented by 2 during push and pop operation.
  • Example
    Here two binary numbers are added. The result produced is stored in the accumulator. Now lets check what each bit means. Refer to the below explanation simultaneously to connect them with the example.

    Sign Flag 7th bit It is reset0 which means number stored in the - photo 2

    • Sign Flag (7th bit): It is reset(0), which means number stored in the accumulator is positive.
    • Zero Flag (6th bit): It is reset(0), thus result of the operations performed in the ALU is non-zero.
    • Auxiliary Carry Flag (4th bit): We can see that b3 generates a carry which is taken by b4, thus auxiliary carry flag gets set (1).
    • Parity Flag (2nd bit): It is reset(0), it means that parity is odd. The accumulator holds odd number of 1s.
    • Carry Flag (0th bit): It is set(1), output results in more than 8 bit.


    AsthaSingh Check out this Authors contributed articles If you like - photo 3
    Astha_Singh
    Check out this Author's contributed articles.

    If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

    Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

    Computer Organization & Architecture
    microprocessor
    Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.
Flag register in 8085 microprocessor

Prerequisite Registers of 8085 microprocessor
The Flag register is a Special Purpose Register. Depending upon the value of result after any arithmetic and logical operation the flag bits become set (1) or reset (0). In 8085 microprocessor, flag register consists of 8 bits and only 5 of them are useful.

The 5 flags are:

Sign Flag S After any operation if the MSB B7 of the result is 1 it in - photo 4

  1. Sign Flag (S) After any operation if the MSB (B(7)) of the result is 1, it in indicates the number is negative and the sign flag becomes set, i.e. 1. If the MSB is 0, it indicates the number is positive and the sign flag becomes reset i.e. 0.
    from 00H to 7F, sign flag is 0
    from 80H to FF, sign flag is 1

    1- MSB is 1 (negative)
    0- MSB is 0 (positive)


    Example:

    MVI A 30 (load 30H in register A)
    MVI B 40 (load 40H in register B)
    SUB B (A = A B)
    These set of instructions will set the sign flag to 1 as 30 40 is a negative number.

    MVI A 40 (load 40H in register A)
    MVI B 30 (load 30H in register B)
    SUB B (A = A B)
    These set of instructions will reset the sign flag to 0 as 40 30 is a negative number.

  2. Zero Flag (Z) After any arithmetical or logical operation if the result is 0 (00)H, the zero flag becomes set i.e. 1, otherwise it becomes reset i.e. 0.
    00H zero flag is 1.
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «GeeksForGeeks Microprocessor Lecture Notes»

Look at similar books to GeeksForGeeks Microprocessor Lecture Notes. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «GeeksForGeeks Microprocessor Lecture Notes»

Discussion, reviews of the book GeeksForGeeks Microprocessor Lecture Notes and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.