mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2025-04-02 11:02:17 -04:00
- implemented BRK and RTI instructions - not fully tested - tidied up when NoSideEffect is checked o debugger - fixed breakAndTrapCallback - fixed instruction result validity check crash caused when instruction step resulted a runtime error o cartridge - added support for half-size cartridges - tidied up error handling o various commentary cleanups/clarifications o move test files to test/ directory
42 lines
1.5 KiB
Go
42 lines
1.5 KiB
Go
package errors
|
|
|
|
var messages = map[Errno]string{
|
|
// Debugger
|
|
InputEmpty: "input is empty",
|
|
CommandError: "%s",
|
|
SymbolsFileCannotOpen: "no symbols file for %s",
|
|
SymbolsFileError: "error processing symbols file (%s)",
|
|
SymbolUnknown: "unrecognised symbol (%s)",
|
|
ScriptFileCannotOpen: "cannot open script file (%s)",
|
|
InvalidTarget: "invalid target (%s)",
|
|
|
|
// CPU
|
|
UnimplementedInstruction: "unimplemented instruction (%0#x) at (%#04x)",
|
|
NullInstruction: "unimplemented instruction (0xff)",
|
|
ProgramCounterCycled: "program counter cycled back to 0x0000",
|
|
InvalidOperationMidInstruction: "invalid operation mid-instruction (%s)",
|
|
|
|
// Memory
|
|
UnservicedChipWrite: "chip memory write signal has not been serviced since previous write (%s)",
|
|
UnknownRegisterName: "can't find register name (%s) in list of read addreses in %s memory",
|
|
UnreadableAddress: "memory location is not readable (%#04x)",
|
|
UnwritableAddress: "memory location is not writable (%#04x)",
|
|
UnrecognisedAddress: "address unrecognised (%v)",
|
|
|
|
// Cartridges
|
|
CartridgeFileError: "error reading cartridge file (%s)",
|
|
CartridgeUnsupported: "cartridge unsupported (%s)",
|
|
CartridgeMissing: "no cartridge attached",
|
|
|
|
// TV
|
|
UnknownTVRequest: "TV does not support %v request",
|
|
|
|
// Peripherals
|
|
NoControllersFound: "no controllers found",
|
|
}
|
|
|
|
// more error strings -- these are strings that are used as arguments to error
|
|
// string messages
|
|
const (
|
|
FileTruncated string = "file truncated"
|
|
)
|