Question: I have a DIV with in image inside of it. There is a spot right before the image that does not fire the onclick function when clicked. The rest, including the image and the DIV fire the function when clicked. I have tried attaching the function to the image itself in addition to the DIV and this does not fix the problem. Anyone know what to do? 

```
//this give all the divs the function
var ButtonNumber = document.querySelectorAll(".ButtonStyle");
for (var i = 0; i < ButtonNumber.length; i++) {
    ButtonNumber[i].onmouseover = ChangeCursor;
    ButtonNumber[i].onclick = ButtonsAddTogether;
    ButtonNumber[i].onselectstart = function() {return false;}
    }

```

This is the HTML

```
 <div id="55" class="ButtonStyle"><img alt="1" class="Center" src="Buttons/7.png"></div>

```

Answer: 
> 
> UPDATE: How does it look in Visual Studio ?
> 
> 
> 

If you are building for 64 bit, you cannot use inline assembly in Visual Studio. If you are building for 32 bit, then you use [`__asm`](http://msdn.microsoft.com/en-us/library/45yd4tzz.aspx) to do the embedding.

Generally, using inline ASM is a bad idea.

1. You're probably going to produce worse ASM than a compiler.
2. Using any ASM in a method generally defeats any optimizations which try to touch that method (i.e. inlining).
3. If you need to access specific features of the processor not obvious in C++ (e.g. SIMD instructions) then you can use much more consistent with the language *intrinsics* provided by most any compiler vendor. Intrinsics give you all the speed of that "special" instruction but in a way which is compatible with the language semantics *and* with optimizers.
If it's for some exercices I'd recommend some real assembler avoiding inlined code as it can get rather messy/confusing.

Some basics using GCC can be found [here](http://www.ibm.com/developerworks/linux/library/l-ia/index.html).

If you're open to trying MSVC (not sure if GCC is a requirement), I'd suggest you have a look at MSVC's interpretation which is (in my opinion) a lot easier to read/understand, especially for learning assembler. An example can be found [here](http://msdn.microsoft.com/en-us/library/45yd4tzz%28v=vs.80%29.aspx).