Init project
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,33 @@
|
||||
format ELF
|
||||
public _start
|
||||
|
||||
extrn print.int
|
||||
extrn print.bin
|
||||
extrn print.str
|
||||
extrn print.nl
|
||||
extrn exit
|
||||
|
||||
macro nl {
|
||||
call print.nl
|
||||
}
|
||||
|
||||
|
||||
section '.strtab'
|
||||
str1 db "Hello world!", 0
|
||||
|
||||
|
||||
section '.text' executable
|
||||
_start:
|
||||
push dword 123
|
||||
call print.int
|
||||
nl
|
||||
|
||||
push dword 123
|
||||
call print.bin
|
||||
nl
|
||||
|
||||
push str1
|
||||
call print.str
|
||||
nl
|
||||
|
||||
call exit
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
all: main
|
||||
|
||||
main: ../../std.o
|
||||
fasm main.asm
|
||||
ld -m elf_i386 main.o ../../std.o --output main
|
||||
|
||||
../../std.o:
|
||||
make -C ../../ std.o
|
||||
|
||||
clear:
|
||||
rm main.o main
|
||||
Reference in New Issue
Block a user