Advertisement
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:
- GET_DEC 4, edx
- mov dword [arr + ecx * 4], edx
- inc ecx
- cmp ecx, eax
- jl .readarr
- xor ecx, ecx
- .print:
- mov edx, dword [arr + ecx * 4]
- PRINT_DEC 4, edx
- inc ecx
- cmp ecx, eax
- jl .print
- xor eax, eax
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement