<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Help with user input and variables' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Help with user input and variables' posted on the 'x86 Assembly' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 23:21:18 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 23:21:18 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Help with user input and variables</title>
      <link>http://www.programmersheaven.com/mb/x86_asm/147546/147546/help-with-user-input-and-variables/</link>
      <description>Hello, I need little help for my assignment, please. &lt;br /&gt;
I need to get input from user, and assign it to a variable for calculations later on in program. &lt;br /&gt;
&lt;br /&gt;
this is a sample of what i got &lt;br /&gt;
&lt;br /&gt;
.data &lt;br /&gt;
first_number db ? &lt;br /&gt;
message1 db "Enter number",0 &lt;br /&gt;
&lt;br /&gt;
main proc &lt;br /&gt;
&lt;br /&gt;
mov dx, offset message1 &lt;br /&gt;
call writestring &lt;br /&gt;
call Readint &lt;br /&gt;
* &lt;br /&gt;
&lt;br /&gt;
*this is where I need to assign the users input into first_number &lt;br /&gt;
(I will be multipling two numbers together later on) &lt;br /&gt;
&lt;br /&gt;
Please Help &lt;br /&gt;
Tanks alot &lt;br /&gt;
Frank &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/x86_asm/147546/147546/help-with-user-input-and-variables/</guid>
      <pubDate>Wed, 23 Oct 2002 07:35:16 -0700</pubDate>
      <category>x86 Assembly</category>
    </item>
    <item>
      <title>Re: Help with user input and variables</title>
      <link>http://www.programmersheaven.com/mb/x86_asm/147546/147605/re-help-with-user-input-and-variables/#147605</link>
      <description>: &lt;br /&gt;
: .data &lt;br /&gt;
: first_number db ? &lt;br /&gt;
: message1 db "Enter number",0 &lt;br /&gt;
: &lt;br /&gt;
: main proc &lt;br /&gt;
: &lt;br /&gt;
: mov dx, offset message1 &lt;br /&gt;
: call writestring &lt;br /&gt;
: call Readint &lt;br /&gt;
: * &lt;br /&gt;
: &lt;br /&gt;
: *this is where I need to assign the users input into first_number &lt;br /&gt;
: (I will be multipling two numbers together later on) &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  - I think there is something unclear in your question.&lt;br /&gt;
    Do you have the code for "Readint" procedure?&lt;br /&gt;
    or do you ask us to write it for you?&lt;br /&gt;
&lt;br /&gt;
if it's the first case you maybe interested in message here:&lt;br /&gt;
http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=1&amp;amp;MsgID=14760
4&amp;amp;Setting=A9999F0001&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/x86_asm/147546/147605/re-help-with-user-input-and-variables/#147605</guid>
      <pubDate>Wed, 23 Oct 2002 11:44:34 -0700</pubDate>
      <category>x86 Assembly</category>
    </item>
    <item>
      <title>Re: Help with user input and variables</title>
      <link>http://www.programmersheaven.com/mb/x86_asm/147546/147612/re-help-with-user-input-and-variables/#147612</link>
      <description>: : &lt;br /&gt;
: : .data &lt;br /&gt;
: : first_number db ? &lt;br /&gt;
: : message1 db "Enter number",0 &lt;br /&gt;
: : &lt;br /&gt;
: : main proc &lt;br /&gt;
: : &lt;br /&gt;
: : mov dx, offset message1 &lt;br /&gt;
: : call writestring &lt;br /&gt;
: : call Readint &lt;br /&gt;
: : * &lt;br /&gt;
: : &lt;br /&gt;
: : *this is where I need to assign the users input into first_number &lt;br /&gt;
: : (I will be multipling two numbers together later on) &lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
:   - I think there is something unclear in your question.&lt;br /&gt;
:     Do you have the code for "Readint" procedure?&lt;br /&gt;
:     or do you ask us to write it for you?&lt;br /&gt;
&lt;br /&gt;
everything is there (all procedures), it's just that I get an error when&lt;br /&gt;
I try to multiply the first_number by the second_number.  The error is "constant expression expected".  What I want to know is, how do I put the users input (number) into the variable First_Number.&lt;br /&gt;
&lt;br /&gt;
I tried     mov first_number, ax (I believe that the input is put into ax) but I still get an error.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Frank &lt;br /&gt;
&lt;br /&gt;
: &lt;br /&gt;
: if it's the first case you maybe interested in message here:&lt;br /&gt;
: http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=1&amp;amp;MsgID=14760
4&amp;amp;Setting=A9999F0001&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/x86_asm/147546/147612/re-help-with-user-input-and-variables/#147612</guid>
      <pubDate>Wed, 23 Oct 2002 12:05:55 -0700</pubDate>
      <category>x86 Assembly</category>
    </item>
    <item>
      <title>Re: Help with user input and variables</title>
      <link>http://www.programmersheaven.com/mb/x86_asm/147546/147935/re-help-with-user-input-and-variables/#147935</link>
      <description>Just let me see your entire code, this would help&lt;br /&gt;
me to figure out the problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: : : &lt;br /&gt;
: : : .data &lt;br /&gt;
: : : first_number db ? &lt;br /&gt;
: : : message1 db "Enter number",0 &lt;br /&gt;
: : : &lt;br /&gt;
: : : main proc &lt;br /&gt;
: : : &lt;br /&gt;
: : : mov dx, offset message1 &lt;br /&gt;
: : : call writestring &lt;br /&gt;
: : : call Readint &lt;br /&gt;
: : : * &lt;br /&gt;
: : : &lt;br /&gt;
: : : *this is where I need to assign the users input into first_number &lt;br /&gt;
: : : (I will be multipling two numbers together later on) &lt;br /&gt;
: : : &lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: :   - I think there is something unclear in your question.&lt;br /&gt;
: :     Do you have the code for "Readint" procedure?&lt;br /&gt;
: :     or do you ask us to write it for you?&lt;br /&gt;
: &lt;br /&gt;
: everything is there (all procedures), it's just that I get an error when&lt;br /&gt;
: I try to multiply the first_number by the second_number.  The error is "constant expression expected".  What I want to know is, how do I put the users input (number) into the variable First_Number.&lt;br /&gt;
: &lt;br /&gt;
: I tried     mov first_number, ax (I believe that the input is put into ax) but I still get an error.&lt;br /&gt;
: &lt;br /&gt;
: Thanks&lt;br /&gt;
: Frank &lt;br /&gt;
: &lt;br /&gt;
: : &lt;br /&gt;
: : if it's the first case you maybe interested in message here:&lt;br /&gt;
: : http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=1&amp;amp;MsgID=14760
4&amp;amp;Setting=A9999F0001&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/x86_asm/147546/147935/re-help-with-user-input-and-variables/#147935</guid>
      <pubDate>Thu, 24 Oct 2002 12:10:17 -0700</pubDate>
      <category>x86 Assembly</category>
    </item>
    <item>
      <title>Re: for emu8086</title>
      <link>http://www.programmersheaven.com/mb/x86_asm/147546/148108/re-for-emu8086/#148108</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by nastinator at  2002-10-25 6:56:31&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
Thanks anyway enu8086, I figured it out.  After I call Readint, it store the users input into AX, but I had declared my variable as a BYTE.  So when I tried to multiply two numbers and tried to store it into a WORD it wouldn't work.&lt;br /&gt;
&lt;br /&gt;
to store the result into first_number after recieving input is&lt;br /&gt;
&lt;br /&gt;
call Readint ; get users input&lt;br /&gt;
mov first_number, ax ; store result into variable&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Frank&lt;br /&gt;
&lt;br /&gt;
: Just let me see your entire code, this would help&lt;br /&gt;
: me to figure out the problem.&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: : : : &lt;br /&gt;
: : : : .data &lt;br /&gt;
: : : : first_number db ? &lt;br /&gt;
: : : : message1 db "Enter number",0 &lt;br /&gt;
: : : : &lt;br /&gt;
: : : : main proc &lt;br /&gt;
: : : : &lt;br /&gt;
: : : : mov dx, offset message1 &lt;br /&gt;
: : : : call writestring &lt;br /&gt;
: : : : call Readint &lt;br /&gt;
: : : : * &lt;br /&gt;
: : : : &lt;br /&gt;
: : : : *this is where I need to assign the users input into first_number &lt;br /&gt;
: : : : (I will be multipling two numbers together later on) &lt;br /&gt;
: : : : &lt;br /&gt;
: : : &lt;br /&gt;
: : : &lt;br /&gt;
: : :   - I think there is something unclear in your question.&lt;br /&gt;
: : :     Do you have the code for "Readint" procedure?&lt;br /&gt;
: : :     or do you ask us to write it for you?&lt;br /&gt;
: : &lt;br /&gt;
: : everything is there (all procedures), it's just that I get an error when&lt;br /&gt;
: : I try to multiply the first_number by the second_number.  The error is "constant expression expected".  What I want to know is, how do I put the users input (number) into the variable First_Number.&lt;br /&gt;
: : &lt;br /&gt;
: : I tried     mov first_number, ax (I believe that the input is put into ax) but I still get an error.&lt;br /&gt;
: : &lt;br /&gt;
: : Thanks&lt;br /&gt;
: : Frank &lt;br /&gt;
: : &lt;br /&gt;
: : : &lt;br /&gt;
: : : if it's the first case you maybe interested in message here:&lt;br /&gt;
: : : http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=1&amp;amp;MsgID=14760
4&amp;amp;Setting=A9999F0001&lt;br /&gt;
: : : &lt;br /&gt;
: : : &lt;br /&gt;
: : : &lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/x86_asm/147546/148108/re-for-emu8086/#148108</guid>
      <pubDate>Fri, 25 Oct 2002 05:57:15 -0700</pubDate>
      <category>x86 Assembly</category>
    </item>
  </channel>
</rss>