main PROC SYSTEMV MEMALLOC(200) MEMFREE(rax) invoke WriteToConsole, ADDR aMsg, 15, stdout invoke WriteToConsole, "Hello, world!", 15, stdout mov eax, SYS_EXIT syscall ret main ENDP
I think it could be more helpful if you showed the usage of the buffer. For example: - read from text file to allocated buffer - print the buffer to console