උදව්... Assembly Language

mfdo90

Well-known member
  • Jan 6, 2009
    1,160
    168
    63
    Please help to solve this question please.
    Thank you for given help in Boolean algebra too guys..
    Special Thanks to
    Gasa84
    කෑප්ටන් Jack Sparrow
    kavi719
    DJvodka
    07sanjeewakaru

    MOV R1, #100
    MOV R2, #100
    MOV (R1), #50
    ADD R2,(R1)

    Select one or more
    1. memory location 50 contains value 150
    2. memory location 100 contains value 100
    3. memory location 100 contains value 50
    4. memory location 100 contains value 150
    5. memory location 50 contains value 100
     
    Last edited:

    Tikz89

    Member
    Mar 14, 2011
    108
    7
    0
    MOV R1, #100 //immediate value 100 is moved into register R1
    MOV R2, #100 //immediate value 100 is moved into register R2
    MOV (R1), #50 //Move immediate value 50 to mem location pointed by R1 which is 100
    ADD R2,R1 //add R1 and R2
    Answer mem location 100 contains value 50
    It is always good to ask. But few minutes of googling would have given you the answer. :)
     

    mfdo90

    Well-known member
  • Jan 6, 2009
    1,160
    168
    63
    MOV R1, #100 //immediate value 100 is moved into register R1
    MOV R2, #100 //immediate value 100 is moved into register R2
    MOV (R1), #50 //Move immediate value 50 to mem location pointed by R1 which is 100
    ADD R2,R1 //add R1 and R2
    Answer mem location 100 contains value 50
    It is always good to ask. But few minutes of googling would have given you the answer. :)

    Thanks a lot Brother... Thanks for the advice too.. kindly can you attached the URL of your findings please..
    You and Elakiri is the Best...
    Thank You BOTH
     

    mfdo90

    Well-known member
  • Jan 6, 2009
    1,160
    168
    63
    Help

    Thanks a lot Brother... Thanks for the advice too.. kindly can you attached the URL of your findings please..
    You and Elakiri is the Best...
    Thank You BOTH

    and another small question it says.
    ADD R2,(R1) -- do Bracket means something ??
    Because this a multiple choice question. There may be one or more answers.

    Thanks in advance
     
    Last edited: