EASy68K  
It is currently Mon Sep 25, 2017 4:17 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: CONVERTION PROGRAM
PostPosted: Mon Dec 19, 2016 8:09 pm 
Offline

Joined: Tue Nov 29, 2016 5:50 pm
Posts: 4
I Dont need clear answer about this homework
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
 Profile  
 
 Post subject: Re: CONVERTION PROGRAM
PostPosted: Mon Dec 19, 2016 8:20 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1046
Check out the EASy68K Quick Start Guide by Krupp and Emerson
http://www.easy68k.com/QuickStart/LoadPageFrames.htm

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject: Re: CONVERTION PROGRAM
PostPosted: Mon Dec 19, 2016 9:04 pm 
Offline

Joined: Tue Nov 29, 2016 5:50 pm
Posts: 4
profkelly wrote:
Check out the EASy68K Quick Start Guide by Krupp and Emerson
http://www.easy68k.com/QuickStart/LoadPageFrames.htm


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


Top
 Profile  
 
 Post subject: Re: CONVERTION PROGRAM
PostPosted: Mon Dec 19, 2016 10:53 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1046
I don't understand your question. It looks like the unit is already determined from the menu.

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject: Re: CONVERTION PROGRAM
PostPosted: Mon Dec 19, 2016 11:05 pm 
Offline

Joined: Tue Nov 29, 2016 5:50 pm
Posts: 4
profkelly wrote:
I don't understand your question. It looks like the unit is already determined from the menu.


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


Top
 Profile  
 
 Post subject: Re: CONVERTION PROGRAM
PostPosted: Tue Dec 20, 2016 2:10 pm 
Offline
User avatar

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

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group