nasm

80x86 assembler for compiling assembly code to machine code

brewmacoslinux
Try with needOr install directly
Source

About

Netwide Assembler (NASM) is an 80x86 assembler

Commands

nasmndisasm

Examples

Assemble a simple x86 assembly file to object format$ nasm -f elf64 program.asm -o program.o
Generate assembly listing file with debug information$ nasm -f macho64 code.asm -l code.lst -o code.o
Disassemble binary file to see assembly instructions$ ndisasm -b 64 program.bin