Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   Assembler Calculator (https://www.askmehelpdesk.com/showthread.php?t=45345)

  • Nov 28, 2006, 09:53 AM
    jamaicandods
    Assembler Calculator
    I am doing an assembler class and I am supposed to create a program that simulates a calculator using plus, minus and multiply operands no divide. If anyone could help me with this code it would be greatly appreciated. Thanks.
  • Jan 4, 2007, 02:14 AM
    rrr
    Well, what programming language do you use??
    If you don't have one, or want a easier on go to
    Liberty BASIC - Easy Programming for Windows
    The code for libertys calculator is as simple as this

    Code:

    [beginning]
    input summat$
    print eval$(summat$)
    goto [beginning]

    Now that I read that you are supposed to use an interpreter, this isn't very helpful. But it shows how easy programming can be! :)

    :cool: geeks rule :cool:

  • All times are GMT -7. The time now is 01:36 AM.