Start from a given address.

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  ChrisImgtec 3 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31697

    Can someone tell me how can i start storing from the adress 0x10008000 and change the less significant bit of it.

    #38702

    ChrisImgtec
    Moderator

    Assuming you want to store to the address and the address in a virtual address and not a physical address:

    This codes stores 42 to the virtual address 0x10008000

    li t0, 42 # load the immediate value 42 to register t0
    la, t1, 0x10008000 # load address to be stored to to t1
    sw, t0, t1 # store word (32 bits) from register t0 to register t1

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.