View previous topic :: View next topic
|
Author |
Message |
afroz alam
New User
Joined: 02 Jul 2007 Posts: 13 Location: India
|
|
|
|
Hi all...
Suppose i have declared a array variable in assembler like
aaa dc F'111,222,333,444,555,666'
now i want to access it.....can any one plz tell me what are instructions requred to access it by using BCT instruction...?
afroz |
|
Back to top |
|
|
afroz alam
New User
Joined: 02 Jul 2007 Posts: 13 Location: India
|
|
|
|
Can anyon plz send the reply its urgent?
afroz |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Hopefully, you realize that BCT does not reference the array. . . BCT is a way to control the iterations thru the loop.
More often (in code i've written or supported), the BCT is not used. After incrementing the address in the array, it is usually checked to see if the end of the array has been reached. BCT means that you have to have to count entries each time there are adds or deletes to the table. If you use the end-of-table address (next byte after the table), the code controlling the loop does not need to be changed. I was once asked to look into a program problem that was caused by entries being modified in a similar array, but the count was not properly changed. It had been running wrong for a long time before the error was discovered. . . |
|
Back to top |
|
|
|