keren

Untitled

May 8th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; AL פעולה שלוקחת מערך וסוכמת כל זוג איברים סמוכים, מכנסה את הערך המקסימלי לאוגר
  2. lea si,a
  3. mov cx,10
  4.  
  5. lp:
  6. mov bl, a[si]
  7. mov bh, a[si+1]
  8. add bl,bh
  9. push bl
  10. inc si
  11. loop lp
  12.  
  13. mov bi,1
  14. pop al
  15. a1:
  16. cmp bi,10
  17. je finish  
  18. inc bi
  19. pop ah
  20. cmp ah,al
  21. jle a1
  22. mov al,ah
  23. jmp a1
  24.  
  25. finish: nop
Advertisement
Add Comment
Please, Sign In to add comment