EASy68K  
It is currently Mon Nov 19, 2018 9:31 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Nov 18, 2009 1:49 am 
Offline

Joined: Wed Nov 18, 2009 12:46 am
Posts: 1
Location: Florida
I have just down loaded EASY68K. I have the following snippet of program and I am wondering why the JSR instruction does not seem to work

Code:
   ORG   $1000
START:      NOP
      JSR   IDLE
         NOP
      TRAP   #15      ; halt simulator

IDLE      MOVE   #$FFF0,D5
      RTS
   END   START      ; last line of source


The simuator starts and then when it hits the JSR instruction it does not jump to IDLE. It doesn't work for BSR either :?:

_________________
“The search for knowledge is insatiable”
I have no clue who said this but I'm sure someone has.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 18, 2009 4:01 am 
Offline

Joined: Mon Dec 27, 2004 11:40 pm
Posts: 318
Your code works as I would expect when I stepped through it in the latest EASy68K.

Lee.


Top
 Profile  
 
PostPosted: Wed Nov 18, 2009 1:05 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1087
John Reedich wrote:
I have just down loaded EASY68K. I have the following snippet of program and I am wondering why the JSR instruction does not seem to work

Code:
   
        ORG     $1000
START:  NOP
        JSR     IDLE
        NOP
        MOVE.B  #9,D0   \ halt simulator  <-- These 2 lines required to halt simulator
        TRAP    #15     /   

IDLE    MOVE    #$FFF0,D5
        RTS
        END     START    


The simuator starts and then when it hits the JSR instruction it does not jump to IDLE. It doesn't work for BSR either :?:


Everything works as expected based on your code. Perhaps the problem is the missing MOVE.B #9,D0 instruction needed to halt the simulator.

_________________
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 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:  
cron
Powered by phpBB® Forum Software © phpBB Group