Member No.: 13311
Joined: 2-October 08
My code is a bit messy right now, totally confuse, and acting stupid right now . I simply don't know how multiply my 2 inputs. I tried to debug and I see some decrepancy but can't figure it out anyways.
Here's my sourcecode. It's not finish. I still didn't write the shift and rotate operation which is suppose to handle in the 2 stored values and readying for multiplication.
buf1 db 5 dup (?);It is suppose to store the value in here.
buf2 db 5 dup (?);But its not working!
;buf3 db 4 dup (?)
message1 db 0ah,0dh,"Enter your first integer: ",0ah,0dh,"$"
message2 db 0ah,0dh,"Enter your second integer: ",0ah,0dh,"$"
message3 db 0ah,0dh,"The answer is: ",0ah,0dh,"$"
mov dx,offset message1;prompt for first input
mov buf1,3;limit input to 2 char
mov dx,offset buf1
mov dx,offset message2;prompt for second input
mov buf2,3;limit input to 2 char
mov dx,offset buf2
;mov dx,offset buf2
line proc near
mov dx,offset message3
I need help!
I'm using masm.