RalphyWiggum
Programmer
Sorry, I am kinda new at assembly language, hopefully someone can help. To the end of my simple program, I "mov" my variable "clutchbell" that a user enters a value of "15" into "ebx", then I "div" a variable "spurgear" that a user enters a value of "52". The result is 0.28846153846153846153846153846154 and this is stored in the remainder "edx" right? Well I get a overload for obvious reasons...although I am only interested in the first (3) places after the decimal. Is there a way that I can isolate and store the value .288 into "edx"...see a snipett below.
mov ebx, clutchbell ; clutchbell to EBX
div spurgear ; divide
dtoa ratio, edx
output label1
mov ebx, clutchbell ; clutchbell to EBX
div spurgear ; divide
dtoa ratio, edx
output label1