NintendoAge http://nintendoage.com/forum/ -Sqooner Mutiply by 32 / Calc tile pos http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=154466 2015-10-29T16:34:48 -05.00 sempressimo 2 second third! thread with a specific programming question. This is exactly why I made this thread right here:

http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=103138

Please start using it and not using individual threads for each question. This will allow us to better keep things organized.

Thank you. ]]>
Mutiply by 32 / Calc tile pos http://nintendoage.com/forum/messageview.cfm?catid=22&threadid=154466 2015-10-29T15:41:02 -05.00 sempressimo 2
I am not sure if ASL (five times would be the same as * 32).

CalcTargetTileNumber:

  LDA player_tile_y
  ASL A ; multiple by 32?
  ASL A
  ASL A
  ASL A
  ASL A
  CLC
  ADC player_tile_x_w
  STA target_tile_number

  RTS ]]>