flat assembler
Message board for the users of flat assembler.
Index
> Linux > Question about includes and libraries |
Author |
|
revolution 22 Nov 2017, 03:24
Linux is very different from Windows. I guess you already knew that. If all you need are simple OS services like opening a file or writing to the console then you don't need to load any libraries. It is all done with system calls or software interrupts.
There are examples programs in the linux version of the fasm download: Code: ; fasm demonstration of writing simple ELF executable format ELF executable 3 entry start segment readable executable start: mov eax,4 mov ebx,1 mov ecx,msg mov edx,msg_size int 0x80 mov eax,1 xor ebx,ebx int 0x80 segment readable writeable msg db 'Hello world!',0xA msg_size = $-msg |
|||
22 Nov 2017, 03:24 |
|
eightlimbed 22 Nov 2017, 18:13
Thanks, Revolution, the examples are helpful.
|
|||
22 Nov 2017, 18:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.