10 CLV:CLP:S=#720 20 @A:CLS:FORI=0TO31:[I]=0:NEXT:FORI=0TO7:LCI+1,0:?I+1:LC0,I+1:?I+1:A=PEEK(S+M*8+I):FORJ=0TO7:[I+16]=[I+16]+A>>(7-J)&1*(J+1):[J+24]=[J+24]+A>>(7-J)&1*(I+1):NEXT:NEXT 30 FORJ=0TO7:LC10,J+1:?[J+16]:IF[J+24]>9LCJ+1,10:?[J+24]/10 40 LCJ+1,11:?[J+24]%10:X=J:Y=J:GSB@C:NEXT:X=0:Y=0:LC16,0:?M+1;"メン" 50 @B:K=INKEY():LCX+1,Y+1,1:X=(X-(K=28)+(K=29)+8)%8:Y=(Y-(K=30)+(K=31)+8)%8:C=16 60 IFK=90||K=122LCX+1,Y+1:?" ":GSB@C 70 IFK=88||K=120LCX+1,Y+1:?"・":GSB@C 80 IFK=67||K=99LCX+1,Y+1:?CHR$(2):GSB@C 85 IFK=127LC0,16:?"(1-";(#800-S)/8;")";:INPUTM:M=M-1:GOTO@A 87 IFK=8FORI=0TO7:FORJ=0TO7:LCJ+1,I+1:?PEEK(S+M*8+I)>>(7-J)&1:NEXT:NEXT 90 IF!CLC0,16:?"CLEAR!":WAIT120:M=M+1:IFS+M*8>#7FFGOTO@EELSEGOTO@A 100 GOTO@B 110 @C:[X+8]=0:[Y]=0:FORI=0TO7:[X+8]=[X+8]+(SCR(X+1,I+1)=2)*(I+1):[Y]=[Y]+(SCR(I+1,Y+1)=2)*(I+1):NEXT:LC13,Y+1:?[Y];" ":LCX+1,13:IF[X+8]>9?[X+8]/10ELSE?" " 120 LCX+1,14:?[X+8]%10:FORI=0TO15:C=C-([I]=[I+16]):NEXT:RTN 130 @E:LC0,16:?"ALL CLEAR!