About 9,830 results
Open links in new tab
  1. ubuntu - Compile/run assembler in Linux? - Stack Overflow

    Jul 23, 2010 · sudo apt install nasm nasm docs For compiling and running: nasm -f elf64 example.asm # assemble the program ld -s -o example example.o # link the object file nasm produced into an …

  2. Hello, world in assembly language with Linux system calls?

    Apr 30, 2020 · On Linux, you can save this file as Hello.asm and build a 32-bit executable from it with these commands: nasm -felf32 Hello.asm # assemble as 32-bit code. Add -Worphan-labels -g …

  3. linux - Programming NASM, a startup guide? - Stack Overflow

    May 14, 2012 · I am interested in programming assembler for Intel x86 architecture and on Linux. After some initial research this lead me to believe out of FASM, NASM and MASM I wanted NASM. From …

  4. linux - How to print a number in assembly NASM? - Stack Overflow

    Apr 6, 2019 · Suppose that I have an integer number in a register, how can I print it? Can you show a simple example code? I already know how to print a string such as "hello, world". I'm developing on …

  5. How to produce a x86-64 compatible object file with NASM

    Aug 9, 2010 · As others have noted, when using the commands Jeff wrote, the -f elf nasm command line option will produce an object module with 32-bit code. By default, the linker wants to see a system …

  6. Linux program to read two integers and add them together.

    Sep 22, 2016 · I am writing a NASM program in linux to read two integer then add them and print to terminal however my code is not functional. It prints out gipperish.

  7. linux - Difference between NASM, TASM, & MASM - Stack Overflow

    May 18, 2020 · Can somebody explain the differences between: masm, tasm, & nasm? Why can't I run tasm code on linux? Are they different languages? I thought that assembly language was unique …

  8. Flags for Linux sys_open in 64-bit NASM - Netwide Assembler

    Dec 5, 2019 · Author Topic: Flags for Linux sys_open in 64-bit NASM (Read 47324 times)

  9. use printf in asm - Netwide Assembler

    Sep 7, 2005 · well, i also think that 32-bit code is what i want. i got that example for linux and it works very well. it is also possible to run it under windows? thx for your help!

  10. How to generate a nasm compilable assembly code from c source …

    Dec 23, 2013 · Test platform is 32 bit Linux. Basically, I know gcc can be used to generate both Intel and At&T style assembly code, but it seems that you can not directly use nasm/tasm to compile the Intel …