The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: GoneFishing on January 04, 2018, 01:24:34 AM

Title: Request for further improvement of Lin64_2 example
Post by: GoneFishing on January 04, 2018, 01:24:34 AM
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