Versions in this module Expand all Collapse all v0 v0.1.0 Sep 24, 2022 Changes in this version + const FAMICOM_FREQUENCY + const FBNameTableHeight + const FBNameTableOffsetX + const FBNameTableOffsetY + const FBNameTableWidth + const FileTypeBasic + const FileTypeBgGraphics + const RawBlockData + const RawBlockInfo + const RawBlockUnknown + func CalcDataChecksum(data []byte) uint16 + func FBBasicBinToString(reader io.Reader) (string, error) + func FBBasicStringToBin(s string, writer io.Writer) error + func FBByteToString(c byte) string + func FBStringToBytes(s string) ([]byte, error) + type FBFile struct + Data []byte + Info FBFileInfo + type FBFileInfo struct + ExecutionAddress uint16 + Length uint16 + LoadAddress uint16 + Name [16]byte + Pad [104]byte + Reserved1 byte + Type FBFileType + func (i *FBFileInfo) SetName(s string) + func (i *FBFileInfo) UnmarshalBinary(buf []byte) error + func (i FBFileInfo) MarshalBinary() ([]byte, error) + func (i FBFileInfo) NameStr() string + type FBFileType uint8 + func (tp FBFileType) String() string + type FBNameTable struct + Attributes [64]byte + Tiles [960]byte + func NewFBNameTable() FBNameTable + func (f *FBNameTable) GetString(x, y int) string + func (f *FBNameTable) PutString(x, y int, tileString string) + func (f *FBNameTable) Read(reader io.Reader) error + func (f *FBNameTable) Write(writer io.Writer) error + type RawBlockType uint8 + type TapeEncodingInfo struct + CyclesPerByte int + LongPulseWidth int + PulseTolerance float32 + ShortPulseWidth int + SyncMinPulseCount int + func NewTapeEncodingInfo() TapeEncodingInfo + func (info *TapeEncodingInfo) TapeFrequency() float64 + type TapeReader struct + func NewTapeReader(reader io.ReadSeeker, encInfo TapeEncodingInfo) (*TapeReader, error) + func (reader *TapeReader) GetPosition() int64 + func (reader *TapeReader) NextBit() (byte, error) + func (reader *TapeReader) NextByte() (byte, error) + func (reader *TapeReader) NextBytes(len int) ([]byte, error) + func (reader *TapeReader) NextBytesWithChecksum(len int) ([]byte, uint16, error) + func (reader *TapeReader) NextFile() (*FBFile, error) + func (reader *TapeReader) RewindBit(bit byte) + func (reader *TapeReader) SetPosition(pos int64) + func (reader *TapeReader) SyncToBlock() (RawBlockType, error) + func (reader *TapeReader) VerifyBit(bit byte) error + type TapeWriter struct + func NewTapeWriter(writer io.WriteSeeker, encInfo TapeEncodingInfo, frequency int) (*TapeWriter, error) + func (writer *TapeWriter) Close() error + func (writer *TapeWriter) WriteBit(bit byte) error + func (writer *TapeWriter) WriteByte(v byte) error + func (writer *TapeWriter) WriteBytes(buf []byte) error + func (writer *TapeWriter) WriteBytesWithChecksum(buf []byte) error + func (writer *TapeWriter) WriteFile(file FBFile) error + func (writer *TapeWriter) WritePulse(length int) error + func (writer *TapeWriter) WriteSilence(length float64) error