Author Topic: Request for further improvement of Lin64_2 example  (Read 76 times)

GoneFishing

  • Member
  • *****
  • Posts: 1030
  • Gone fishing
Request for further improvement of Lin64_2 example
« on: January 04, 2018, 01:24:34 AM »
Currently your example makes no use of allocated buffer:
Code: [Select]
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