I'm just starting to play a little bit with assembly so excuse me if my questions are dumb.
My questions are about this (I'm trying to divide 100 by 5, playing with memory and variables of course!)
Why does the DW (Define Word) instruction is executed like that?
I mean, I understand all of the others line but that in particular is a dark one for me..
Also, can you explain to me why var is instantiated at the address 0010Ah ?
I think it's because the 4 istructions before the instantiation occupy 4*16bits=4*2bytes=8bytes,
and so var is filed on the stack right after.
But shouldn't the instruction be elsewhere? Are they loaded on the stack once the program starts to run?
Bonus question: How can I check the what's on stack in emu8086?
This post has been edited by domenico: 04 May 2013 - 12:59 PM