EASy68K  
It is currently Mon Nov 19, 2018 8:59 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Aug 22, 2009 6:12 pm 
Offline

Joined: Wed Jul 29, 2009 5:36 pm
Posts: 9
Location: Ptolemaios
Sir Kelly,
I'm back with another question. :)
How do make use of the STOP instruction?
Whenever I use it based on the quick guide, voila, I get the error stated above.
What does the
Code:
opt bit
do?
Clueless about that one.

_________________
Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 22, 2009 7:08 pm 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
Quote:
What does the
Code:
    opt bit
do?

Help -> Assembler Commands -> Directives -> OPT

Lee.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 23, 2009 1:06 am 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1087
If you want to halt the simulator do the following:

Code:
    MOVE.B  #9,D0
    TRAP    #15     ; halt simulator


A simple example of STOP instruction is:
Code:
    STOP    #$2000


See
.. Help
.... Jimmy Mardell's 68000 Reference Guide
...... Instruction Summary
........ System Control

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 23, 2009 6:34 am 
Offline

Joined: Wed Jul 29, 2009 5:36 pm
Posts: 9
Location: Ptolemaios
:D
How do you set supervisor bit, to work in supervisor mode?

_________________
Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 23, 2009 1:26 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1087
The simulator defaults to supervisor mode. On the simulator register display, S indicates the state of the supervisor bit in the Status Register. 1 indicates supervisor mode.
Code:
   T S
SR=0010

_________________
Prof. Kelly


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 3 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