943,813 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 2312
  • Assembly RSS
May 22nd, 2007
0

calculatrice.asm

Expand Post »
this is a code to make a calculator but it doesn't work i didn't find the error
Attached Files
File Type: txt CALCul.txt (785 Bytes, 62 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bassem is offline Offline
3 posts
since May 2007
May 23rd, 2007
0

Re: calculatrice.asm

Does it assemble?
If not, what error messages do you get, which assembler are you using?

Does it run?
Do you run it by double-clicking on the executable (does the DOS box disappear before you get a chance to read anything), or do you run it from a command prompt?

What input do you type in?

What result(s) do you get (if any). How do those differ from what you expect.

Don't just dump your code on a message board and order people to fix it.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
May 25th, 2007
0

Re: calculatrice.asm

It is difficult to know what to make of it. For example, what is this supposed to do:

Assembly Syntax (Toggle Plain Text)
  1. JNE saisie
  2. saisie:POP AX ; vider la valeur 010D
  3. POP BX
Apart from jumping to the very next instruction, which seems a bit pointless, you pop two registers, but as far as I can see you have only ever pushed one.
Reputation Points: 14
Solved Threads: 4
Junior Poster
mathematician is offline Offline
149 posts
since Nov 2006
May 26th, 2007
0

Re: calculatrice.asm

sorry salem u have reason. i work on 8086 with tasm and it compiles then it assemble but it doesn't make tests to verify if it's a number or not and it doesn't return a result
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bassem is offline Offline
3 posts
since May 2007
May 26th, 2007
0

Re: calculatrice.asm

pop ax is to extract '0Dh' from the stack and then to make our test for the rest of values
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bassem is offline Offline
3 posts
since May 2007
May 26th, 2007
0

Re: calculatrice.asm

Click to Expand / Collapse  Quote originally posted by bassem ...
pop ax is to extract '0Dh' from the stack and then to make our test for the rest of values
But what does "pop bx" do? You do not appear to have pushed anything which corresponds with that pop.
Reputation Points: 14
Solved Threads: 4
Junior Poster
mathematician is offline Offline
149 posts
since Nov 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: Keyboard in 32 bit MASM
Next Thread in Assembly Forum Timeline: wrong output , but i am sure that code is correct





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC