According to the way you've got your DATA statements, shouldn't your loops look like this instead?
Code:
for a = 0 to 49
   for b = 0 to 15
      read ( ( 50 * b ) + a ) , c
      debug c, ", "
   next b
   debug 13, 10
next a