cris2
Member level 1

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!
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!