Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To traverse the values in the range of x4000 to x400A and determine if they are either 1 or 0, you would need to perform the following steps:

  1. Set a counter variable to the starting value (x4000).
  2. While the counter is less than or equal to the ending value (x400A), do the following: a. Read the value at the memory location corresponding to the current value of the counter. b. Check if the value is 1 or 0. c. If the value is 1 or 0, record the result (e.g. store it in an array or print it to the screen). d. Increment the counter variable by 1.
  3. Once the loop has finished, you will have traversed all values in the range of x4000 to x400A and determined whether they are 1 or 0.