News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Request for further improvement of Lin64_2 example

Started by GoneFishing, January 04, 2018, 01:24:34 AM

Previous topic - Next topic

GoneFishing

Currently your example makes no use of allocated buffer:

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

Thanks