Problem with ARM assembly language simple program

Status
Not open for further replies.

cris2

Member level 1
Joined
Aug 29, 2001
Messages
40
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
279
ARM QUESTION

Hello,

I’m new on ARM microprocessors and I’m trying to get running my first ARM assembly language program “HelloWorld”. The program was taken from the book “ARM System on Chip Architecture” – Second Edition, by Steve Furber and the IDE I’m using is ARM Developer Suite v1.2:

AREA HelloW,CODE,READONLY ; declare code area
SWI_WriteC EQU &0 ;
SWI_Exit EQU &11 ;
ENTRY ;
START ADR r1, TEXT ;
LOOP LDRB r0, [r1],#1 ;
CMP r0, #0 ;
SWINE SWI_WriteC ;
BNE LOOP ;
SWI SWI_Exit ;
TEXT = "Hello World",&0a,&0d,0
END

When I run ADX Debugger, while it reaches the SWINE SWI_WriteC instruction it generates the error message “Processor ARM7TDMI raised an exception. Cause: Undefined instruction.”
Does the software emulator understand SWI-s? How can I solve this problem? Any information will be appreciated.

Thank you!
 

Re: ARM QUESTION

Nobody can help on that?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…