EASy68K  
It is currently Fri Oct 18, 2019 12:09 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Jul 31, 2011 1:12 pm 
Offline

Joined: Wed Jul 27, 2011 10:39 am
Posts: 2
Location: Philippines
Hello! We were asked to make a simple program that converts lower case letters to uppercase. I was able to do it but i kept on getting the error,
"Line 1111 Emulator exception occurred at location 2014. Execution halted".
Can someone point out to me what is wrong? Thanks a lot in advance!!!

Code:
   
                ORG      $1000
WORD   DC.B      'asdFGh jKlMn'
           ORG      $2000
START   MOVEA.L   #WORD,A0
LOOP     CMP.B   #$20,(A0)
           BEQ      STOP
            BCLR.B   #5,(A0)+
           BRA      LOOP
STOP
           END      START


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 31, 2011 2:03 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1102
The simulator keeps running until it is stopped. It is running past the end of your program and trying to execute whatever it finds in memory. Try adding a STOP instruction at the end of your code.

Code:
        ORG     $1000
WORD    DC.B    'asdFGh jKlMn'
        ORG     $2000
START   MOVEA.L #WORD,A0
LOOP    CMP.B   #$20,(A0)
        BEQ     STOP
        BCLR.B  #5,(A0)+
        BRA     LOOP
STOP    STOP    #$2700  stop simulator
        END     START

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 08, 2011 7:10 am 
Offline

Joined: Wed Jul 27, 2011 10:39 am
Posts: 2
Location: Philippines
wow that worked, thank you so much!!!


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