It is currently Sat Jun 06, 2020 12:09 am

 All times are UTC

 Page 1 of 1 [ 6 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: CONVERTION PROGRAMPosted: Mon Dec 19, 2016 8:09 pm

Joined: Tue Nov 29, 2016 5:50 pm
Posts: 4
but i need some help about :
how can i read an option from keyboard ?
how can the user choose what unit that want ?
and if any example help my to solve this homework ?

You need to write a68k assembly program with following specifications:
1-Print the following menu to the user
1- Convert Length from Mile (mile) to Feet (ft).
2- Convert Length from Feet (ft) to Inches (in).
3- Convert Volume from Gallon (gal) to Liter (liter).
4- Convert Time from Hour (hr) to Second (sec).
5- Convert Mass from Bound (lbm) to Gram (g).
6- Exit from program.
2- Read an option from the keyboard, then display a message that asks the user to enter a value in
its related unit.
3- Write a subroutine for each option in the menu
4- Display the result on the screen with unit.

Top

 Post subject: Re: CONVERTION PROGRAMPosted: Mon Dec 19, 2016 8:20 pm

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1122
Check out the EASy68K Quick Start Guide by Krupp and Emerson

_________________
Prof. Kelly

Top

 Post subject: Re: CONVERTION PROGRAMPosted: Mon Dec 19, 2016 9:04 pm

Joined: Tue Nov 29, 2016 5:50 pm
Posts: 4
profkelly wrote:
Check out the EASy68K Quick Start Guide by Krupp and Emerson

THANKS
but how can user choose what unit want to convering it ?

Top

 Post subject: Re: CONVERTION PROGRAMPosted: Mon Dec 19, 2016 10:53 pm

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1122

_________________
Prof. Kelly

Top

 Post subject: Re: CONVERTION PROGRAMPosted: Mon Dec 19, 2016 11:05 pm

Joined: Tue Nov 29, 2016 5:50 pm
Posts: 4
profkelly wrote:

OK
HOW I CAN MULTIPL for example ( 3.45 *4 ) ?
comma dose not support in easy68k !!

Top

 Post subject: Re: CONVERTION PROGRAMPosted: Tue Dec 20, 2016 2:10 pm

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1122
The 68000 only supports integer math.

_________________
Prof. Kelly

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 6 posts ]

 All times are UTC

#### Who is online

Users browsing this forum: No registered users and 8 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ EASy68K Forum    FAQ    Latest Features    EASy68K Questions    68000 Programming Questions    Wish List    Wishes Granted    Undocumented Features    Documented Features    General Discussion    EASy68K Projects