HELP.. assembly program

Reply

Join Date: Nov 2009
Posts: 2
Reputation: JhonRR is an unknown quantity at this point 
Solved Threads: 0
JhonRR JhonRR is offline Offline
Newbie Poster

HELP.. assembly program

 
0
  #1
19 Days Ago
Hello Everyone,

i'm new to assembly language programing
i would like to write a program that will print prompts to enter two values and a code #. If the code # is 1, output the greater of the values.... otherwise it should output the lesser

here is what i have:

.begin
in first
in second
in code
load code
store code
jumpneq outsecond
load first
compare second
jumplt outsecond
out first
jump done
outsecond: out second
done: halt
first: .data 0
second: .data 0
code: .data 0
.end


Thanx,
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 2
Reputation: JhonRR is an unknown quantity at this point 
Solved Threads: 0
JhonRR JhonRR is offline Offline
Newbie Poster
 
0
  #2
19 Days Ago
HEEEEEELP!!!
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC