SHARE
TWEET

Untitled

a guest Jun 25th, 2017 125 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .global _start
  2.  
  3. define {tab1, l0}
  4. define {tab2, l1}
  5. define {size, l2}
  6. define {b, l3}
  7. define {index, l4}
  8.  
  9. _start:
  10.         save %sp, -96, %sp
  11.         mov %i0, %tab1
  12.         mov %i1, %tab2
  13.         mov %i2, %size
  14.         mov %i3, %b
  15.         mov 0, %index
  16.     loop:
  17.         subcc %size, %index, %temp
  18.         bl endloop
  19.         nop
  20.         ld [%tab1], %tabEl
  21.         add %tabEl, %b, %tabEl
  22.         st %tabEl, [%tab2]
  23.         add %index, 1, %index
  24.         add %tab1, 4, %tab1
  25.         add %tab2, 4, %tab2
  26.         ba loop
  27.         nop
  28.     endloop:
  29. ret
  30. restore
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top