# File test/backup/DOSFile.rb, line 366
        def SCAsmFile.can_be_scasm_file?(buffer)
                if buffer.length<2 then
                        return false
                end
                length=buffer[0]+buffer[1]*256
                index=2
                s=""
                while (index<length)
                        line_length=buffer[index]
                        line_no=buffer[index+1]+buffer[index+2]*256
                        index+=3 #skip over the "line number" field
                        #S-C Assembler lines always ends with a 0x00 
                        if ( buffer[index+line_length-4] != 0x00 )
                                return false
                        end
                        buffer[index..index+line_length-3].each_byte do |b|
                                        if b>0xc0 then
                                                return false
                                        end
                        end
                        index+= (line_length-3).abs
                end
                return true
        end