Line 1111 emulator exception occurred.. can someone help me?
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!!!

                ORG      $1000
WORD   DC.B      'asdFGh jKlMn'
           ORG      $2000
LOOP     CMP.B   #$20,(A0)
           BEQ      STOP
            BCLR.B   #5,(A0)+
           BRA      LOOP
           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.

        ORG     $1000
WORD    DC.B    'asdFGh jKlMn'
        ORG     $2000
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