Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .text
- global thisismymain
- thisismymain:
- mov eax, 0
- ret
- ;this program don't print anything but this is basic of the basic.
- ;It's not easy and I'm just starting.
- ;I compile in Windows with NASM, but also work in other platforms but you need to change thisismymain to _start
- ;save it has basic.asm
- ;then open command line (you need to install NASM, just search on the web)
- ;
- ;nasm -f elf basic.asm
- ;ld -s -o basic.exe basic.o
- ;
- ;now, you just need to execute
- ;sorry for the empty program, soon I will post something printing text
- ;thanks to http://sudevshares.blogspot.pt/2012/01/running-your-first-assembly-language.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement