EASy68K  
It is currently Tue Apr 25, 2017 12:34 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Trap 14 implementation
PostPosted: Tue Nov 27, 2012 4:28 pm 
Offline

Joined: Tue Nov 27, 2012 4:23 pm
Posts: 3
I have code written in Trap #14 and would like to execute it using the easy68k. Have tried enabling exceptions but it does work. Is there something else that I should be doing and if so how exactly is it done?


Top
 Profile  
 
PostPosted: Tue Nov 27, 2012 6:05 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
Location: Monroe County Community College, Monroe Michigan, U.S.A.
Is this code written for a different simulator or are you implementing your own Trap #14 handler?
Traps are redirected to their corresponding exception vector address when enable exceptions is checked.

EASy68K uses Trap #15 for simulator I/O.

_________________
Prof. Kelly


Top
 Profile  
 
PostPosted: Tue Nov 27, 2012 9:06 pm 
Offline

Joined: Tue Nov 27, 2012 4:23 pm
Posts: 3
It was originally written for ASM. Is there any easy way to implement this same code with easy68k.

THanks


Top
 Profile  
 
PostPosted: Tue Nov 27, 2012 9:13 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1036
Location: Monroe County Community College, Monroe Michigan, U.S.A.
The trap #14 code would need to be rewritten to use EASy68K compatible trap #15 code or trap #14 handler code would need to be written for EASy68K.

_________________
Prof. Kelly


Top
 Profile  
 
PostPosted: Tue Nov 27, 2012 10:13 pm 
Offline

Joined: Tue Nov 27, 2012 4:23 pm
Posts: 3
Does anyone in the forum have an already written trap 14 handler code that i could use for the easy68k..... I would greatly appreciate any assistance I could get.


Top
 Profile  
 
PostPosted: Tue Nov 27, 2012 10:40 pm 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
The use of TRAP #14, presumably for I/O, sounds like it's code for the Motorola educational computer.

Care to link to the code?

Lee.


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