Okay I just need help and some shed on light how to overcomes this I mean from start..since I'm beginner with assembly...maybe expertise here can help me out by point me the rite path on how to dig it...
ok here's the scenario I have to solve
So I'm really help from expertise on how to start it I mean after define the array and get the input from user here's are my code currently....hope someone will give me some shed light on how to solve it.... really need help..any help are appreciated..
A predetermine number is stored in an array named ANS.The number will be a 4-digit number, like 1234.Only numbers 0 to 9 is permitted.The player will be prompted to guess the number in the correct sequences.Clues will be given to help the player make the next guess.The clues are as follows
* --> right number and right place
+ --> right number but wrong place
& --> wrong number and wrong place
Say the right answers is 1245.
User inputs: 1234
output : **&+
Player are given 9 try to get the right answers
here's the code just for my starting..
Hope will get help from expertise...tq in advanced
TITLE masterclassgame <masterclassgame.asm>
ANS SWORD 1,2,3,4
RESTRICTED SWORD 0,5,6,7,8,9
inputUser BYTE "Please Enter Your Answers :",0
mov edx,OFFSET inputUser
;how to assign input user into my variable???
mov ebx,OFFSET ANS ;point to array
mov ecx,LENGTHOF ANS ;loop counter