EASy68K  
It is currently Thu Aug 24, 2017 8:52 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Interrupts and I/O
PostPosted: Wed Apr 25, 2012 9:07 pm 
Offline

Joined: Wed Apr 25, 2012 12:43 pm
Posts: 7
I have noticed that if the microprocessor is executing a TRAP # 15 with a reading task awaiting keyboard ( 2, 4, 5, 18 ) interrupts of any level does not work. After execution of TRAP #15, the interrupts can work again.

Thanks

Code:
      ORG $64
      DC.L INTA   

      ORG   $1000
START:            ; first instruction of program
      MOVE.L #5,D0
      TRAP #15
BUC      JMP BUC

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

INTA      EORI.B #%01010101,$E00010
      RTE


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 26, 2012 11:14 pm 
Offline

Joined: Mon Jul 26, 2010 11:43 pm
Posts: 198
Location: Aurora, IL
Most likely because the simulator isn't multi-threaded, the most effective course of action would be to use Task 7 to check for pending characters on a 68K side loop, and implement your own numeric input routines using Task 5.

You could of course also look at the source, and pump the simulation instead of blocking on OS calls.

The problem with not servicing interrupts probably effects any OS task that might block, for instance writing data to a file, or displaying a file dialog.

Code:
      ORG $64
      DC.L INTA ; IRQ1   

      ORG   $1000
START:            ; first instruction of program

LOOP:
      MOVEQ  #7,D0 ; Check Character Pending
      TRAP   #15

      OR.B   D1,D1
      BEQ    LOOP

      MOVEQ  #5,D0 ; Get Character
      TRAP   #15

      BRA    LOOP

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

INTA  EORI.B #%01010101,$E00010
      RTE


   END   START      ; last line of source


Top
 Profile  
 
 Post subject: Re: Interrupts and I/O
PostPosted: Wed Jan 09, 2013 2:05 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1044
The simulator blocks the processing of interrupts until I/O operations complete.

_________________
Prof. Kelly


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 1 guest


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