# Need help with assembly languange using MASM615 32bit

**URL:** <https://forum.kirupa.com/t/need-help-with-assembly-languange-using-masm615-32bit/257539>\
**Category:** Uncategorized\
**Created:** [April 15, 2008, 4:34am UTC](https://forum.kirupa.com/t/need-help-with-assembly-languange-using-masm615-32bit/257539 "2008-04-15T04:34:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixeldude](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pixeldude](https://forum.kirupa.com/u/pixeldude)\
**Post date:** [April 15, 2008, 4:34am UTC](https://forum.kirupa.com/t/need-help-with-assembly-languange-using-masm615-32bit/257539/1 "2008-04-15T04:34:46Z")

</div>

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

```auto

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

sample:

Say the right answers is 1245.
User inputs: 1234
output : **&+

Player are given 9 try to get the right answers

```

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…

here’s the code just for my starting…

```auto

TITLE masterclassgame <masterclassgame.asm>

INCLUDE Irvine32.inc

.data

ANS SWORD 1,2,3,4
RESTRICTED SWORD 0,5,6,7,8,9

inputUser BYTE "Please Enter Your Answers :",0

.code

main PROC

    mov edx,OFFSET inputUser
    call WriteString
    call Crlf
    call ReadInt
    ;how to assign input user into my variable???

    mov ebx,OFFSET ANS ;point to array
    mov ecx,LENGTHOF ANS ;loop counter

    call Crlf
    exit

main ENDP

End main

```

Hope will get help from expertise…tq in advanced
