EASy68K  
It is currently Thu Apr 02, 2020 11:30 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Mar 25, 2011 5:11 pm 
Offline

Joined: Fri Mar 25, 2011 11:06 am
Posts: 2
Location: malaysia
I'm a newbie in using Easy68K. I have been assigned to write a program for converting string of 10 ASCII numbers to BCD and then print them as string by using EASy68k simulator. Anyone can help me or give me some examples? Thanks a lot...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 25, 2011 6:56 pm 
Offline

Joined: Mon Jul 26, 2010 11:43 pm
Posts: 198
Location: Aurora, IL
http://www.easy68k.com/EASy68Kforum/viewtopic.php?t=960

Most text books cover these kind of things. What books do you have on the 68K?

Provide the list of numbers you plan on using for testing.

Are you using a 10 digit number, or 10 numbers with 1 to 8 digits?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2011 11:46 pm 
Offline

Joined: Mon Jul 26, 2010 11:43 pm
Posts: 198
Location: Aurora, IL
Should we assume your need is not actually URGENT!!!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 30, 2011 6:58 am 
Offline

Joined: Fri Mar 25, 2011 11:06 am
Posts: 2
Location: malaysia
So sorry for my late reply..we're just able to meet up with our lecturer and get clear abt our topic.

the book tat we are using now:
The 68000 Microprocessor Hardware and Software Principles and Applications (Fifth Edition) by Jemes L. Antonakos
* Pearson Education International

We are free to choose any words tat we like, not just limited by numbers only (as long as they are 10 ASCII no)
So we hav decided to choose a string consisted of "I AM TIRED" (10 ASCII included 2 spaces) for testing.

thanks..


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 30, 2011 10:54 am 
Offline

Joined: Mon Jul 26, 2010 11:43 pm
Posts: 198
Location: Aurora, IL
I'm not sure that's cleared anything up because it now seems to be a completely different task. There is no numeric or BCD conversion.

You'll just need to use the correct TRAP#15 function to print the string, for which there are dozens of examples on the forum, or within the Easy68K package.
Code:
        org     $400

* Program starts here

start   move    #14,d0          ; task number into D0
        lea     msg,a1
        trap    #15             ; display string

        MOVE.L  #9,D0
        TRAP    #15     ; halt simulator

msg     dc.b    'We''ve lost containment in reactor two, and there is plutonium all over the floor',10,13,0

        end start


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 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:  
cron
Powered by phpBB® Forum Software © phpBB Group