1 / 8

Addressing MODES

Addressing MODES. DIRECT ADDRESSING (instruction itself carries the address of the operand) IMMEDIATE ADDRESSING (instruction has the operand itself) INDIRECT ADDRESSING (instruction has an address of a Register which contains the address of the operand). Direct Addressing. ANDWF f, 1.

quana
Download Presentation

Addressing MODES

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Addressing MODES • DIRECT ADDRESSING (instruction itself carries the address of the operand) • IMMEDIATE ADDRESSING (instruction has the operand itself) • INDIRECT ADDRESSING (instruction has an address of a Register which contains the address of the operand)

  2. Direct Addressing ANDWF f, 1

  3. Immediate Addressing ANDLW k • There is no address in this case. Operand is already available in the instruction itself. • W = W AND k ; The value of K is directly got from the Instruction register.

  4. Indirect Addressing Address is specified in a Register called FSR INCF INDF, 0

  5. Addressing MUX :Getting the Address from Operand

  6. Arithmetic Logic Unit • 8 bit ALU and 8 bit Working Register • Performs arithmetic and boolean functions between Working Register and any register file • ALU may affect values of the Carry(C), Digit Carry(DC) and Zero(Z) bits in STATUS Register

  7. ALU & WREG

  8. RAM (Data Memory) address generation 1)Direct addressing: Addr mux gets 7 bits from IR and 2 bits from STATUS (RP1,RP0) 2)Indirect addressing: 8 bits from FSR and 1 bit from STATUS (IRP) 3)According to OPCODE, the control unit sends mux select signals to choose appropriate addresses.

More Related