flat assembler
Message board for the users of flat assembler.
Index
> Linux > How to make Linux executable? |
Author |
|
crc 19 Nov 2004, 13:31
1) No BIOS interrupts; you use int $80 to call the kernel syscall interface
2) No need to set the org. Start the program with this code: Code: format elf executable entry main main: ; your code after this 3) After assembling, do chmod +x filename to make it runnable 4) All OSes have limitations; at least in Linux it's possible (not easy though) to access the raw hardware. DOS is easy to program for because it places no limits on the direct hardware access. Some limits are good though (if your Linux/Windows programs crashes, it's not likely to force you to reboot for example) See http://linuxassembly.org for a good introduction (using NASM though) to Linux programming. |
|||
19 Nov 2004, 13:31 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.