calculatrice.asm

Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: May 2007
Posts: 3
Reputation: bassem is an unknown quantity at this point 
Solved Threads: 0
bassem bassem is offline Offline
Newbie Poster

calculatrice.asm

 
0
  #1
May 22nd, 2007
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, 22 views)
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 751
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: calculatrice.asm

 
0
  #2
May 23rd, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 134
Reputation: mathematician is an unknown quantity at this point 
Solved Threads: 3
mathematician mathematician is offline Offline
Junior Poster

Re: calculatrice.asm

 
0
  #3
May 25th, 2007
It is difficult to know what to make of it. For example, what is this supposed to do:

  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.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 3
Reputation: bassem is an unknown quantity at this point 
Solved Threads: 0
bassem bassem is offline Offline
Newbie Poster

Re: calculatrice.asm

 
0
  #4
May 26th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 3
Reputation: bassem is an unknown quantity at this point 
Solved Threads: 0
bassem bassem is offline Offline
Newbie Poster

Re: calculatrice.asm

 
0
  #5
May 26th, 2007
pop ax is to extract '0Dh' from the stack and then to make our test for the rest of values
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 134
Reputation: mathematician is an unknown quantity at this point 
Solved Threads: 3
mathematician mathematician is offline Offline
Junior Poster

Re: calculatrice.asm

 
0
  #6
May 26th, 2007
Originally Posted by bassem View Post
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



Tag cloud for Assembly
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC