Advertisement
sconetto

Logic - 6 (Invert Bytes)

Aug 28th, 2017
362
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .data
  2. .text
  3. main:
  4.     ori $at, $zero, 0x76543210
  5.     or $v0, $zero, $at
  6.     or $v1, $zero, $at
  7.     srl $at, $at, 28
  8.     sll $v0, $v0, 4
  9.     srl $v0, $v0, 28
  10.     sll $v0, $v0, 4
  11.     or $at, $v0, $at
  12.     and $v0, $v0, $zero
  13.     or $v0, $v1, $zero
  14.     sll $v0, $v0, 8
  15.     srl $v0, $v0, 28
  16.     sll $v0, $v0, 8
  17.     or $at, $v0, $at
  18.     and $v0, $v0, $zero
  19.     or $v0, $v1, $zero
  20.     sll $v0, $v0, 12
  21.     srl $v0, $v0, 28
  22.     sll $v0, $v0, 12
  23.     or $at, $v0, $at
  24.     and $v0, $v0, $zero
  25.     or $v0, $v1, $zero
  26.     sll $v0, $v0, 16
  27.     srl $v0, $v0, 28
  28.     sll $v0, $v0, 16
  29.     or $at, $v0, $at
  30.     and $v0, $v0, $zero
  31.     or $v0, $v1, $zero
  32.     sll $v0, $v0, 20
  33.     srl $v0, $v0, 28
  34.     sll $v0, $v0, 20
  35.     or $at, $v0, $at
  36.     and $v0, $v0, $zero
  37.     or $v0, $v1, $zero
  38.     sll $v0, $v0, 24
  39.     srl $v0, $v0, 28
  40.     sll $v0, $v0, 24
  41.     or $at, $v0, $at
  42.     and $v0, $zero, $zero
  43.     and $v1, $zero, $zero
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement