View Single Post
Light Poster
12Nov2009,02:33  
RobertH900's Avatar
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

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,