Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %include "io.inc"
- section .bss
- arr resd 10000
- section .text
- global CMAIN
- CMAIN:
- mov ebp, esp; for correct debugging
- GET_DEC 4, eax
- xor ecx, ecx
- .readarr:
- cmp ecx, eax
- jge .readarr_end
- GET_DEC 4, edx
- mov dword [arr + ecx * 4], edx
- inc ecx
- jmp .readarr
- .readarr_end:
- GET_DEC 1, cl
- mov ebx, 1
- shl ebx, 31
- sar ebx, cl
- rol ebx, cl
- .loop:
- xor eax, eax
- ret
Add Comment
Please, Sign In to add comment