1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Temp Reg Instruction

Discussion in 'Assembly Language Programming (ALP) Forum' started by Radiant, Sep 11, 2007.

  1. Radiant

    Radiant New Member

    Joined:
    Sep 10, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Microprocessor: 8085

    I know that W and Z are the temporary registers

    They are not available to the users.

    And they are used only by the microprocessor for the internal operations.

    But which are the instructions that microprocessor uses to perform the operations?

    I never came across any instruction (out of the 74 instructions) that supports the temporary registers.
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    Internal operations of the processor are governed by microcode and hardware logic signals instituted by the chip designer. You cannot affect these.
     
  3. Radiant

    Radiant New Member

    Joined:
    Sep 10, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    So does it mean that there is no one instruction where these registers are used by microprocessor?
     
  4. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    These registers are not used by the programmer. Data is moved around inside the chip by switching logic elements in a way consistent with carrying out an instruction. An example would be in connecting the various general purpose registers to the ALU.

    Do not forget that a microprocessor is a hardware device. Software is merely a list of easily-modifiable instructions that control the signals applied to the hardware elements. A single software instruction is merely a pattern of bits that cause certain signals to be applied in an appropriate sequence.

    Perhaps you should resort to Google for information on microprocessor architectures.
     
  5. Radiant

    Radiant New Member

    Joined:
    Sep 10, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    I just now read that CALL instruction makes use of the W and Z registers for storing the next address just after the "CALL addr " instruction; that is the address to which it has to return after it completes executing the Subroutine!

    Thank you very much !
     
  6. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    That's just a temporary storage, though. It's then pushed onto the stack so that nested calls (and interrupts) will work.
     

Share This Page