title: Creation and addressing arrays in AVR Assembly (Using the ATMega8535)
body: <p>I am having trouble with the creation and addressing of an array created purely in assembly using the instruction set for the Atmel ATMega8535.</p>
  
  <p>What I understand so far is as follows:</p>
  
  <ul>
  <li>The array contains contiguous data that is equal in length.</li>
  <li>The creation of the array involves defining the beginning and end locations of the array (much like you would the stack).</li>
  <li>You would address an index in the array by adding an offset of the base address of the array.</li>
  </ul>
  
  <p>What I am looking to do specifically is create a 1-D array of 8-bit integers with predefined values populating it during initialization it does not have to be written to, only addressed when needed. The problem ultimately lying in not being able to translate the logic into the assembly code.</p>
  
  <p>I have tried with little progress to do so using support from the following books:</p>
  
  <ul>
  <li>Some Assembly Required:  Assembly Language Programming with the AVR Microcontroller by Timothy S Margush</li>
  <li>Get Going with...AVR Microcontrollers by Peter Sharpe </li>
  </ul>
  
  <p>Any help, advice or further resources would be greatly appreciated.</p>