Top "Assembly" questions

Assembly language questions.

How should I get started on writing device drivers?

I would like to learn how to write device drivers because I think it would be fun. I use a …

c assembly hardware drivers
What are the ESP and the EBP registers?

I found that the ESP register is the current stack pointer and EBP is the base pointer for the current …

assembly x86 callstack stack-frame
How do you use gcc to generate assembly code in Intel syntax?

The gcc -S option will generate assembly code in AT&T syntax, is there a way to generate files …

gcc x86 gnu intel assembly
What does OFFSET in 16 bit assembly code mean?

I am going through some example assembly code for 16-bit real mode. I've come across the lines: mov bx, cs …

assembly x86 masm x86-16 16-bit
MUL function in assembly

I am trying to execute simple multiplication in Assembly. However, I do not see the registers change when the MUL …

assembly x86 x86-16 multiplication
Reading a register value into a C variable

I remember seeing a way to use extended gcc inline assembly to read a register value and store it into …

c gcc assembly inline-assembly cpu-registers
MIPS assembly for a simple for loop

I need to translate this C code to MIPS assembly. Here is the C code: int tmp = 0; for (int j = 0; …

assembly mips mips32
Is it worthwile to learn assembly language?

Is it still worthwhile to learn ASM? I know a little of it, but I haven't really used it or …

programming-languages assembly nasm
`testl` eax against eax?

I am trying to understand some assembly. The assembly as follows, I am interested in the testl line: 000319df 8b4508 …

assembly x86 instructions
How to set 1 second time delay at assembly language 8086

My problem is that I have written a code that is supposed to output a result into a set of …

assembly time delay x86-16