EASy68K
http://www.easy68k.com/EASy68Kforum/

Line 1111 emulator exception occurred.. can someone help me?
http://www.easy68k.com/EASy68Kforum/viewtopic.php?f=6&t=1038
Page 1 of 1

Author:  countershadow_14 [ Sun Jul 31, 2011 1:12 pm ]
Post subject:  Line 1111 emulator exception occurred.. can someone help me?

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

Author:  profkelly [ Sun Jul 31, 2011 2:03 pm ]
Post subject: 

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

Author:  countershadow_14 [ Mon Aug 08, 2011 7:10 am ]
Post subject: 

wow that worked, thank you so much!!!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/