Sunteți pe pagina 1din 1

CS401- Computer Architecture and Assembly

Language Programming
Assignment # 2
Fall 2010
Total Marks: 20
Due

Assignment
Question_1: [marks:
10]
Find the 2’s complement of a number using bitwise logical operator.

Question_2: [marks:
10]
Take a random number of word (dw), form and input this to a subroutine “Is
Number Power of Two”. Check number is in power of 2 using bitwise logical
operators and then display the return result on the screen if the number is even it
diplay that number is even if the number is odd then it display the number is odd.

Good Luck

S-ar putea să vă placă și