mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2025-04-02 11:02:17 -04:00
- tidied up regression database operation - removed UPDATE option (for now). it's probably never needed but we can add it again if it's ever needed
65 lines
2.4 KiB
Go
65 lines
2.4 KiB
Go
package errors
|
|
|
|
var messages = map[Errno]string{
|
|
// Debugger
|
|
UserInterrupt: "user interrupt",
|
|
CommandError: "%s",
|
|
InvalidTarget: "invalid target (%s)",
|
|
|
|
// Symbols
|
|
SymbolsFileCannotOpen: "no symbols file for %s",
|
|
SymbolsFileError: "error processing symbols file (%s)",
|
|
SymbolUnknown: "unrecognised symbol (%s)",
|
|
|
|
// Script
|
|
ScriptFileCannotOpen: "cannot open script file (%s)",
|
|
ScriptFileError: "script error: %s",
|
|
ScriptRunError: "script error: use of '%s' is not allowed in scripts [%s::%d]",
|
|
ScriptEnd: "end of script (%s)",
|
|
ScriptRecordingError: "error when recording script (%s)",
|
|
|
|
// Regression
|
|
RegressionDBError: "database error: (%s)",
|
|
RegressionFail: "screen digest mismatch (%s)",
|
|
|
|
// CPU
|
|
UnimplementedInstruction: "unimplemented instruction (%0#x) at (%#04x)",
|
|
InvalidOpcode: "invalid opcode (%#04x)",
|
|
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)",
|
|
UnPokeableAddress: "address is un-poke-able (%v)",
|
|
|
|
// Cartridges
|
|
CartridgeFileError: "error reading cartridge file (%s)",
|
|
CartridgeUnsupported: "cartridge unsupported (%s)",
|
|
CartridgeMissing: "no cartridge attached",
|
|
CartridgeNoSuchBank: "bank out of range (%d) for this cartridge (max=%d)",
|
|
|
|
// TV
|
|
UnknownTVRequest: "TV does not support %v request",
|
|
BasicTelevision: "BasicTelevision: %s",
|
|
ImageTV: "ImageTV: %s",
|
|
DigestTV: "DigestTV: %s",
|
|
|
|
// GUI
|
|
UnknownGUIRequest: "GUI does not support %v request",
|
|
SDL: "SDL: %s",
|
|
|
|
// Peripherals
|
|
NoControllerHardware: "no hardware controllers found",
|
|
NoPlayerPort: "VCS only supports two players (0 and 1)",
|
|
ControllerUnplugged: "controller unplugged",
|
|
UnknownPeripheralEvent: "this peripheral (%s) does not understand that event (%v)",
|
|
|
|
// Recorder
|
|
RecordingError: "error when recording input (%s)",
|
|
PlaybackError: "error when playing back recorded input (%s)",
|
|
PlaybackHashError: "hash error when playing back recording input (%s)",
|
|
}
|