Guest User

Untitled

a guest
Jan 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. .global start
  2. .equ N,0x0A
  3.  
  4. .data
  5. A: .word 0x07,0x03,0x19,0x04,0x4B,0x02,0x01,0x01
  6.  
  7. .bss
  8. Max: .worsd 0x00
  9.  
  10. .text
  11. start: MOV R0,#N
  12. LDR R1,A
  13. LDR R2,Max
  14. MOV R3,#0
  15. FOR: CMP R3,R0
  16. BGE fin_for
  17. LDR R4,[=R1]
  18. if: CMP R4,R2
  19. BLE fin_if
  20. STR R4,[R2]
  21. fin_if: ADD R3,R3,#1
  22. ADD R1,=R1,#4
  23. B FOR
  24. fin_for:
  25. FIN: B .
  26. .ltorg
  27. .end
Add Comment
Please, Sign In to add comment