I need some help writing the .data and .code portions of the code to implement the following equation:<br />X=(10*Y-3*Z)/5<br /><br />with X, Y=2, Z=5<br />I have most of it I think but I do not know where to go from here??<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />.DATA<br />X      DW    ?<br />Y      DW    2<br />Z      DW    5<br />.CODE<br />mov          ax,@data<br />mov          ds,ax<br />mov          dx,ah<br />mul            Y<br />mov          bx,03h<br />mul            Z<br />sub            ax,bx<br />cwd<br />div<br /><!--c2--></div><!--ec2--><br /><br />This is where I got stuck....If someone could help me out I would really appreciate it<br /><br />Thanks!<br /><br /><span class='edit'>This post has been edited by <b>tinytoh</b>: 23 Sep, 2007 - 05:14 PM</span>
</div>
</div>