Current location: Hot Scripts Forums » Programming Languages » Other Languages » Assembly language..HELP!!!


Assembly language..HELP!!!

Reply
  #1 (permalink)  
Old 11-10-09, 10:23 PM
RobertH900 RobertH900 is offline
New Member
 
Join Date: Nov 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Assembly language..HELP!!!

hey, watsup all

I'm new to assebmly language and i need help with a program (if you all wana help)
the program should prompt the user to enter a number if the number is even output 0 and 1 if it is even

Thanx,

Last edited by Nico; 11-11-09 at 08:02 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-11-09, 08:01 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Sounds like a homework assignment.

We're not going to do this for you unless you show some effort. What do you have so far?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to Nico For This Useful Post:
RobertH900 (11-11-09)
  #3 (permalink)  
Old 11-11-09, 08:09 AM
RobertH900 RobertH900 is offline
New Member
 
Join Date: Nov 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
thanks for the reply, i understand

i have this so far:

.begin
in first
load first
here is where i have problems, i don't know how to say, if first is even print 1 for even, if odd print 0

out first
jump done
done: halt
first: .data 0
even: .data 1
odd: .data 0
.end

thanx,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-11-09, 10:58 AM
RobertH900 RobertH900 is offline
New Member
 
Join Date: Nov 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
can anyone help?!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
assembly language easy, need help duke7575 Other Languages 0 04-07-09 11:38 PM
Assembly Language Help please nito28 Other Languages 0 02-05-09 10:58 PM
How to build a binary tree in assembly language? phingphing Other Languages 0 11-04-08 08:15 AM
Assembly Language question jessicayan Other Languages 1 02-13-07 04:07 PM
Assembly language help please psi3000 Other Languages 0 03-25-06 10:21 PM


All times are GMT -5. The time now is 01:54 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.