To use mmap, the simplest way is to use the library function mmap(). You can call the function from your assembly code.
Here be dragons.
If you want to deal with system call, you can use the syscall() function in libc. You will need to figure out the actual mmap syscall to use. There are two mmap syscalls: mmap and mmap2 due to evolution of the Linux kernel ABI to handle big files on 32-bit systems. And the arguments for mmap syscalls may not be the same as the libc wrapper function. Luckily for x86_64, there is only one mmap syscall and it takes the same arguments as the libc API. You you can do something in C like:
If you really want to deal the x86 syscall instruction, it is quite easy to convert the call to syscall() above to direct use of the syscall instruction.
想請教下當初經咩途俓先apply 到日本當地工作