Documentation
¶
Overview ¶
Package srec provides decoding of the Motorola S-Record file format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidChecksum = errors.New("checksum validation failed")
)
Functions ¶
Types ¶
type Record ¶
type Record struct {
// contains filtered or unexported fields
}
A Record is a single record from a Motorola 68000 S-Record encoded file. This format is used to share 68000 programs in plain text and is detailed in Appendix C of the M68000 Family Programmer's Reference Manual.
func Parse ¶
Parse decodes the given byte array into a Record struct. The input is expected to be a heximdecimal encoded record with the 'S' prefix.
func Read ¶
Read reads and parses S-Records from the given Reader. Records are delimited by line breaks.
func (*Record) Address ¶
Address specifies the destination memory address where data will be loaded for a data record.
Click to show internal directories.
Click to hide internal directories.