Can anyone help indirect addressing CMP part ? should i compare two a[i] and b[i] ?

40 views
Skip to first unread message

aaron171091

unread,
Oct 28, 2016, 5:38:49 PM10/28/16
to SJSUcmpe120
ass.jpg

Frank (sjsu) Lin

unread,
Oct 29, 2016, 1:09:55 PM10/29/16
to aaron lee, SJSUcmpe120
the for loop compares i, why compare both A[i] and B[i]?  shouldn't one is enough?

On Fri, Oct 28, 2016 at 2:38 PM, aaron171091 <aaron...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "SJSUcmpe120" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sjsucmpe120+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

michael.hyun3

unread,
Oct 29, 2016, 7:06:42 PM10/29/16
to SJSUcmpe120
You should be CMP the value of i and the last index possible, not Array A and Array B

On Friday, October 28, 2016 at 2:38:49 PM UTC-7, aaron171091 wrote:

Frank (sjsu) Lin

unread,
Oct 30, 2016, 12:24:23 AM10/30/16
to michae...@gmail.com, SJSUcmpe120
Aaron was talking about register indirect addressing..  for indexing addressing, yes, you should compare I.


On Saturday, October 29, 2016, michael.hyun3 <michae...@gmail.com> wrote:
You should be CMP the value of i and the last index possible, not Array A and Array B

On Friday, October 28, 2016 at 2:38:49 PM UTC-7, aaron171091 wrote:

Reply all
Reply to author
Forward
0 new messages