EASy68K  
It is currently Thu Apr 09, 2020 6:59 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Delay of instruction
PostPosted: Mon Nov 19, 2012 2:59 pm 
Offline

Joined: Thu Nov 08, 2012 6:07 pm
Posts: 12
Hi all,
I have a problem about the delay of an instruction
I want it to display a number then clear it about 10 times
when I did that it appeasers to me like just one time I have used the NOP instruction but it didn't help what can I do?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 19, 2012 3:08 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1118
Trap task #23. See Help - Simulator I/O - Text/Time/Terminate

Delay n/100 of a second
Pre: D1.L = n as unsigned number 0 through $FFFFFFFF

For example. the following code will pause the program for 1 second.
Code:
    move.b  #23,d0          trap task 23
    move.l  #100,d1         delay amount
    trap    #15

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 19, 2012 4:50 pm 
Offline

Joined: Thu Nov 08, 2012 6:07 pm
Posts: 12
Thanks prof kelly for your help


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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