Top "Nasm" questions

Nasm is the Netwide Assembler, an open-source x86/x64 assembler.

strlen in assembly

I made my own implementation of strlen in assembly, but it doesn't return the correct value. It returns the string …

linux assembly x86 nasm strlen
Writing to a file in assembler

I'm tasked with creating a program that would write some string to a file. So far, I came up with …

assembly nasm dosbox
Near and Far JMPs

I am doing Linux assembly and I understand that is has a flat memory model. What I am confused about …

assembly x86 nasm
Error: Operation size not specified - NASm

I'm working in 16 bit NASM assembly having an issue where my code won't build. The error happens on all the …

assembly nasm x86-16 mov
Loop unrolling vs Loop tiling

Can someone please tell if the 2 optimization techniques are same or different? Also, is it responsibility of programmer or compiler …

c++ optimization compiler-construction nasm
Addressing Modes in Assembly Language (IA-32 NASM)

As the web-resources on this is sparse, I will, for the benefit of future searches, begin by listing the address …

assembly x86 nasm addressing-mode
Can't link assembly file in Mac OS X using ld

I'm trying to run a basic assembly file using 64 Bit Mac OS X Lion, using nasm and ld which are …

macos assembly nasm ld object-files
Base pointer and stack pointer

Given this piece of code: swap: push ebp ; back up the base pointer, mov ebp, esp ; push the context of …

assembly x86 nasm stack-pointer
What values can the carry flag hold, and how to check its status in x86 assembly?

What values can the carry flag hold? Is it just 0x00 and 0x01 (boolean) or is it 16 (or 32/64) bits like …

assembly x86 nasm
What are the sizes of tword, oword and yword operands?

What are the sizes of tword, oword and yword operands, as used in the NASM/YASM manual? And on a …

assembly nasm word yasm word-size