if a-3>=0 then locate 10,11: ? bg$[a-3] 以下同様に