2009-09-10 03:25:56     loop counter issue

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-09-10 03:25:56     loop counter issue

Bhama AVM (INDIA)

Message: 79740   

 

Hi,

 

From the BF HWR manual,

 

Warning: When LCx = 0, the loop is disabled, and a single pass of the code executes. If the loop counter is derived from a variable with a range that may include zero, it is recommended to guard the loop against the zero case.

 

It seems to be that this is not taken care in some of the functions like : outsw()

 

Please do check it and take care in all possible places to avoid issues with applications which works in other processors but not in BF due to above issue.

 

Thanks.

QuoteReplyEditDelete

 

 

2009-09-10 03:43:36     Re: loop counter issue

Mike Frysinger (UNITED STATES)

Message: 79741   

 

what exactly is your question ?  it doesnt make any sense to call an in/out function with a length of 0.  if you do, your code is broken.

Attachments

    Outcomes