Trying to understand this short assembler instruction but I don't understand

后端 未结 3 1948
攒了一身酷
攒了一身酷 2021-01-18 15:15

We had a task, given was an assembler instruction of a 2-addressing machine:

mov 202, 100[r1+]

Note down a minimal ass

3条回答
  •  既然无缘
    2021-01-18 16:00

    You solution does not map to the input at all. In your input, R1 is in an unknown state. In our "solution" R1 ends up at in a known state (1).

    In addition, you'd have to know what your nation instruction format is.

    mov 202, 100[r1+]
    

    looks like it would

    1) add 100 to the contents of R1 to create an address.
    2) move 202 into that address
    3) Add 2 to r1 (assuming a 2-byte machine word)
    

提交回复
热议问题