mov [input1],eax
to store the value in eax into the memory location given by input1. Why is this so? Doesn't putting square brackets around an identifier mean to access the contents of input1? This is supposed to use the address of input1 as the destination operand. To use the value stored at that address just seems silly.
This is the code that NASM accepted. It produces an error if I don't dereference input1.
input1 is a label for an uninitialized storage location defined in .bss, if that's at all relevant.


Sign In
Create Account


Back to top









