Advertisement
Guest User

Najmniejszy i największy element tablicy

a guest
Mar 30th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. mov ecx, N;
  2. mov ebx, tab;
  3. mov eax, [ebx + 4 * ecx - 4];
  4.  
  5. dec ecx;
  6.  
  7. petla: cmp eax, [ebx + 4 * ecx - 4];
  8.  
  9. Jl pomin;
  10.  
  11. mov eax, [ebx + 4 * ecx - 4];
  12. pomin: dec ecx;
  13. jnz petla;
  14. mov min, eax;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement