TAV - UQAM

Computer Organization and Assembly Language  
Department of Computer Science		Assignment #3
Instructor: F. SAID		Due Date: 1 week
====================================================================================

Question 1.

You are asked to create an Assembly(X68K) program that will do the following:

display a menu of 5 choices to the user:
Main Menu

Convert from decimal to binary 
Convert from binary to decimal 
Convert from binary to hexadecimal 
Convert from binary to octal 
Exit program
 

Hint #1: You must create a subroutine for each choice.

Hint #2: Your program can only terminate through this Main Menu (when the user

enters 5.

Hint #3: If the user chooses 1, then you should ask the user to enter a decimal
 number (which you must verify that it is decimal) and then printout its respective 
 binary representation. Similarly for the other options (2, 3, and 4).

Hint #4: Range of numbers:

Decimal: between 0 and 200, 
Binary: 16 bit representation (positve numbers),



    Source: geocities.com/wonlin/Assembly

               ( geocities.com/wonlin)