Top "Assembly" questions

Assembly language questions.

Convert ASM to C (not reverse engineer)

I googled and I see a surprising amount of flippant responses basically laughing at the asker for asking such a …

c assembly embedded reverse-engineering microchip
What are IN & OUT instructions in x86 used for?

I've encoutered these to instructions IN & OUT while reading "Understanding Linux Kernel" book. I've looked up reference manual. 5.1.9 I/…

assembly x86 linux-kernel
How to break on assembly instruction at a given address in gdb?

0x0000000000400448 <main+0>: push %rbp 0x0000000000400449 <main+1>: mov %rsp,%rbp 0x000000000040044c <main+4>: mov $0x6,%…

assembly gdb
What does ORG Assembly Instruction do?

can anyone give me a comprehensive description about ORG directive? When and why is it used in assembly written applications? …

assembly x86 nasm directive
In MIPS, what are HI and LO

I'm reading about division in MIPS and I've found that div Divides $s by $t and stores the quotient in $…

assembly mips cpu-registers
So on x86-64 it's big endian?

0x0000000000400507 <main+28>: 74 0c je 0x400515 <main+42> 0x0000000000400509 <main+30>: bf 28 06 40 00 mov $0x400628,%edi .. 0x400507 <…

assembly x86-64 endianness
What is the purpose of XORing a register with itself?

xor eax, eax will always set eax to zero, right? So, why does MSVC++ sometimes put it in my executable's …

assembly x86
How do I disassemble raw 16-bit x86 machine code?

I'd like to disassemble the MBR (first 512 bytes) of a bootable x86 disk that I have. I have copied the …

linux assembly x86 x86-16 mbr
What registers to save in the ARM C calling convention?

It's been a while since I last coded arm assembler and I'm a little rusty on the details. If I …

c assembly arm calling-convention function-call
What is the purpose of the RBP register in x86_64 assembler?

So I'm trying to learn a little bit of assembly, because I need it for Computer Architecture class. I wrote …

c assembly x86-64 stack-pointer