2 Replies - 1173 Views - Last Post: 26 March 2012 - 04:26 PM

#1 Nana1991   User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 53
  • Joined: 06-April 11

I have an error with my code in my ARMS prog...could any one help me

Posted 20 March 2012 - 05:05 PM

I'v wrote my first homework using assembly language and ARMS prog .

there is an error appeared I couldn't fix it

this is my code :

global_start
start:

	mov r2,#LIST
	mov r3,#0
	mov r4,#0
	mov r5,#0
	ldr r6,=N
	ldr r7,[r2],#4
	add r3,r3,r7
	ldr r7,[r2],#8
	add r4,r4,r7
	ldr r7,[r2],#12
	add r2,r2,#16
	subs r6,r6,#1
	bgt loop
	str r3,=sum	
	str r4,=sum2
	str r5,=sum3
.data
.word
.word
.word
.word
.word





the error in the pic


I'll really be thanxful for who help me

and I wish him a great perfect life

Attached image(s)

  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: I have an error with my code in my ARMS prog...could any one help me

#2 Nana1991   User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 53
  • Joined: 06-April 11

Re: I have an error with my code in my ARMS prog...could any one help me

Posted 25 March 2012 - 08:53 PM

any help ....? :( :( :( :(
Was This Post Helpful? 0
  • +
  • -

#3 GunnerInc   User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 918
  • View blog
  • Posts: 2,358
  • Joined: 28-March 11

Re: I have an error with my code in my ARMS prog...could any one help me

Posted 26 March 2012 - 04:26 PM

I think you copy and pasted it wrong.

Shouldn't it be:
global _start
_start:


See the space after global? The identifier after global can be anything as long as there is a matching label.
global startmeup
startmeup:

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1