Linux, how to make a system call through sysenter?

I successfully compiled the build for NASM:

global _start ; global entry point export for ld section .text _start: ; sys_write(stdout, message, length) mov eax, 4 ; sys_write syscall mov ebx, 1 ; stdout mov ecx, message ; message address mov edx, length ; message string length int 80h ; sys_exit(return_code) mov eax, 1 ; sys_exit syscall mov ebx, 0 ; return 0 (success) int 80h section .data message: db 'Hello, world!',0x0A ; message and newline length: equ $-message ; NASM definition pseudo-instruction 

How to call the sys_write procedure using the special SYSENTER statement?

+1
assembly linux nasm
source share

No one has answered this question yet.

See similar questions:

nineteen
How to make a system call through sysenter in an embedded assembly?
8
Syscall or sysenter on 32 bit Linux?
6
Linux x86 NASM - Subroutine: print dword from EAX
0
writing to a file in nasm using system calls

or similar:

4800
How to find all files containing specific text in Linux?
1773
How to symbolize a file in Linux?
1528
How to change echo output color on Linux
1324
How do I request Yes / No / Cancel input in a Linux shell script?
1101
How to install chmod for a folder and all its subfolders and files in Linux Ubuntu Terminal?
12
GUI Programming for Mac OS X
5
NASM Puzzling Number Game Disappears Wrong
2
lost assembly world NASM ELF64
0
NASM for Linux: using sys_read adds an extra line to the end
0
cannot be read from file when user provides file name (build x86 program using nasm)

All Articles