Skip to content

Conversation

@dani4310
Copy link

@dani4310 dani4310 commented Mar 4, 2015

No description provided.

@dani4310 dani4310 closed this Mar 4, 2015
starnight added a commit to starnight/arm-lecture that referenced this pull request Mar 9, 2015
erickitten added a commit to erickitten/arm-lecture-1 that referenced this pull request Mar 14, 2015
when R0=1 return 1, since R0 is used on passing and return,
mov embedded2015#1 into R0 is not necessary
jingfei added a commit to jingfei/arm-lecture that referenced this pull request Sep 18, 2015
kevinbird61 added a commit to kevinbird61/arm-lecture that referenced this pull request Sep 29, 2015
…utput is different"

Add "cmp" code in iterative-version , and solve the problem
Because orginal version is use:
	subs r4,r4,embedded2015#1
	bne .LoopIt
But when input is 0 , the loop can't stop and do the input 1,2,3... relatively.
So why the iterative-version n=5 result is 5 => it doesn't have "0" sequence!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants