p42のbgputのところは if a==0 then bgput 0,j,I,0 if a==1 then bgput 0,j,I,559 の2行をまとめた同じ意味なので、このif文でなければ誤りでしょう。