Indirect Addressing help

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm working on a maze telling a bear to go through a maze. We are initially given a direction and told to turn left, right, or around. For Left turn, I was going to make a table of addresses DB.[ south, east, north, west, south]  and plan to increment ZL, so it points at the new direction (if started at east, it will increment to the north address. What I am really confused on is if I start in direction north, how set ZL's address to start North?

-Stuckey

Last Edited: Mon. Mar 5, 2018 - 12:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If Z points to the start ofcthe table, then just add the offset of ‘north’ to Z. Z now points to north.