Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %include "io.inc"
- section .text
- global CMAIN
- section .data
- x dw 4, 3, 1, 2, 3
- max dw 0
- cons dw 0
- CMAIN:
- mov eax, [x]
- mov ebx, [x+2]
- L3:
- mov edx, [ebx]
- cmp [max], edx
- JG L1
- MOV [max], edx
- L1:
- sub eax, 1
- add ebx, ebx, 2
- cmp 0, eax
- JNE L3
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement