Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- uncoded_num: .word 0xa13
- decoded_num: .word 0
- .text
- main:
- la x1, uncoded_num
- lw x2, 0(x1)
- andi x3, x2, 1
- srli x4, x2, 1
- andi x4, x4, 1
- srli x5, x2, 3
- andi x5, x5, 1
- srli x6, x2, 7
- andi x5, x5, 1
- srli x7, x2, 2
- andi x7, x7, 1
- srli x8, x2, 4
- andi x8, x8, 0x07
- srli x9, x2, 8
- andi x9, x9, 0x0f
- slli x7, x7, 0
- slli x8, x8, 1
- slli x9, x9, 4
- or x10, x7, x8
- or x10, x10, x9
- sb x10, 4(x1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement