• Complain

it-ebooks - GeeksForGeeks Computer Organization and Architecture Lecture Notes

Here you can read online it-ebooks - GeeksForGeeks Computer Organization and Architecture 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 Computer Organization and Architecture Lecture Notes
  • Author:
  • Publisher:
    iBooker it-ebooks
  • Genre:
  • Year:
    2018
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

GeeksForGeeks Computer Organization and Architecture 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 Computer Organization and Architecture 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 Computer Organization and Architecture 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 Computer Organization and Architecture 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 Computer Organization and Architecture 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 Computer Organization and Architecture Lecture Notes

From: https://www.geeksforgeeks.org/computer-organization-and-architecture-tutorials/

Basic Computer Instructions

The basic computer has 16 bit instruction register (IR) which can denote either memory reference or register reference or input-output instruction.

  1. Memory Reference These instructions refer to memory address as an operand. The other operand is always accumulator. Specifies 12 bit address, 3 bit opcode (other than 111) and 1 bit addressing mode for direct and indirect addressing.

    Example IR register contains 0001XXXXXXXXXXXX ie ADD after fetching and - photo 1

    Example
    IR register contains = 0001XXXXXXXXXXXX, i.e. ADD after fetching and decoding of instruction we find out that it is a memory reference instruction for ADD operation.

    Hence, DR <- M[AR]AC <- AC+ DR, SC <- 0
  2. Register Reference These instructions perform operations on registers rather than memory addresses. The IR(14-12) is 111 (differentiates it from memory reference) and IR(15) is 0 (differentiates it from input/output instructions). The rest 12 bits specify register operation.

    Example IR register contains 0111001000000000 ie CMA after fetch and - photo 2

    Example
    IR register contains = 0111001000000000, i.e. CMA after fetch and decode cycle we find out that it is a register reference instruction for complement accumulator.

    Hence, AC <- ~AC
  3. Input/Output These instructions are for communication between computer and outside environment. The IR(14-12) is 111 (differentiates it from memory reference) and IR(15) is 1 (differentiates it from register reference instructions). The rest 12 bits specify I/O operation.

    Example IR register contains 1111100000000000 ie INP after fetch and - photo 3

    Example
    IR register contains = 1111100000000000, i.e. INP after fetch and decode cycle we find out that it is an input/output instruction for inputing character. Hence, INPUT character from peripheral device.

The set of instructions incorporated in16 bit IR register are:

  1. Arithmetic, logical and shift instructions (and, add, complement, circulate left, right, etc)
  2. To move information to and from memory (store the accumulator, load the accumulator)
  3. Program control instructions with status conditions (branch, skip)
  4. Input output instructions (input character, output character)
SymbolHexadecimal CodeDescription
AND0xxx8xxxAnd memory word to AC
ADD1xxx9xxxAdd memory word to AC
LDA2xxxAxxxLoad memory word to AC
STA3xxxBxxxStore AC content in memory
BUN4xxxCxxxBranch Unconditionally
BSA5xxxDxxxAdd memory word to AC
ISZ6xxxExxxIncrement and skip if 0
CLA7800Clear AC
CLE7400Clear E(overflow bit)
CMA7200Complement AC
CME7100Complement E
CIR7080Circulate right AC and E
CIL7040Circulate left AC and E
INC7020Increment AC
SPA7010Skip next instruction if AC>0
SNA7008Skip next instruction if AC<0
SZA7004Skip next instruction if AC>0
SE7002Skip next instruction if E=0
HLT7001Halt computer
INPF800Input character to AC
OUTF400Output character from AC
SKIF200Skip on input flag
SKOF100Skip on output flag
IENF080Interrupt On


aastha98 Check out this Authors contributed articles If you like - photo 4
aastha98
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
Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.
Addressing Modes

Addressing Modes The term addressing modes refers to the way in which the operand of an instruction is specified. The addressing mode specifies a rule for interpreting or modifying the address field of the instruction before the operand is actually executed.

Addressing modes for 8086 instructions are divided into two categories:

1) Addressing modes for data

2) Addressing modes for branch

The 8086 memory addressing modes provide flexible access to memory, allowing you to easily access variables, arrays, records, pointers, and other complex data types. The key to good assembly language programming is the proper use of memory addressing modes.


An assembly language program instruction consists of two parts

The memory address of an operand consists of two components IMPORTANT TERMS - photo 5
The memory address of an operand consists of two components:

IMPORTANT TERMS

  • Starting address of memory segment.
  • Effective address or Offset: An offset is determined by adding any combination of three address elements: displacement, base and index.
    • Displacement: It is an 8 bit or 16 bit immediate value given in the instruction.
    • Base: Contents of base register, BX or BP.
    • Index: Content of index register SI or DI.

According to different ways of specifying an operand by 8086 microprocessor, different addressing modes are used by 8086.

Addressing modes used by 8086 microprocessor are discussed below:

  • Immediate mode: In immediate addressing the operand is specified in the instruction itself. In this mode the data is 8 bits or 16 bits long and data is the part of instruction.
    Example MOV AL 35H move the data 35H into AL register Register mode In - photo 6Example: MOV AL, 35H (move the data 35H into AL register)
  • Register mode: In register addressing the operand is placed in one of 8 bit or 16 bit general purpose registers. The data is in the register that is specified by the instruction.
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «GeeksForGeeks Computer Organization and Architecture Lecture Notes»

Look at similar books to GeeksForGeeks Computer Organization and Architecture 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 Computer Organization and Architecture Lecture Notes»

Discussion, reviews of the book GeeksForGeeks Computer Organization and Architecture 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.