Top "Assembly" questions

Assembly language questions.

Assembly code vs Machine code vs Object code?

What is the difference between object code, machine code and assembly code? Can you give a visual example of their …

assembly machine-code object-code
What are SP (stack) and LR in ARM?

I am reading definitions over and over again and I still not getting what are SP and LR in ARM? …

assembly stack arm
Why does C++ code for testing the Collatz conjecture run faster than hand-written assembly?

I wrote these two solutions for Project Euler Q14, in assembly and in C++. They implement identical brute force approach …

c++ performance assembly optimization x86
What does `dword ptr` mean?

Could someone explain what this means? (Intel Syntax, x86, Windows) and dword ptr [ebp-4], 0

assembly x86 dword pointers
assembly to compare two numbers

What is the assembler syntax to determine which of two numbers is greater? What is the lower level (machine code) …

assembly x86 compare machine-code
Assembly Language - How to do Modulo?

Is there something like a modulo operator or instruction in x86 assembly?

assembly x86 modulo integer-division
Difference between JE/JNE and JZ/JNZ

In x86 assembly code, are JE and JNE exactly the same as JZ and JNZ?

assembly x86
How do I compile the asm generated by GCC?

I'm playing around with some asm code, and something is bothering me. I compile this: #include <stdio.h> …

c gcc compiler-construction assembly
Assembly - JG/JNLE/JL/JNGE after CMP

I don't understand the JG/JNLE/JL/JNGE instructions, which come after CMP. for example, If I have: CMP al,…

assembly x86 eflags
While, Do While, For loops in Assembly Language (emu8086)

I want to convert simple loops in high-level languages into assembly language (for emu8086) say, I have this code: for(…

loops for-loop assembly while-loop x86-16