mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2025-04-02 11:02:17 -04:00
- debug colours (just the players for now) - hmove type now uses a latch to keep track of when hmove event is over, rather than the rather clumsy and prone to error method we had previously. this goes someway to fixing a bug in the emulation caused by late HMOVEs o polycounter - modified MachineInfo() output - updated test routines to reflect changes to MachineInfo output o debugger - added DEBUGCOLORS toggle to DISPLAY command - PLAYER command in verbose mode now prints player 0 and player 1 side by side for easier comparison - similarly for MISSILE command - verbose PLAYER output now includes commentary of the sprite size setting - similarly for MISSILE command - corrected initialisation script error output - removed tab completion time limit - can now cycle through options until another key is pressed o television - improved screen size detection and stability routines - this currently breaks the fix we had in place for Plaque Attack but I think we can probably fix that some other way
55 lines
2.1 KiB
Go
55 lines
2.1 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)",
|
|
ScriptFileError: "script error: %s",
|
|
ScriptRunError: "script error: use of '%s' is not allowed in scripts [%s::%d]",
|
|
InvalidTarget: "invalid target (%s)",
|
|
|
|
// Regression
|
|
RegressionEntryExists: "entry exists (%s)",
|
|
RegressionEntryCollision: "ROM hash collision (%s AND %s)",
|
|
RegressionEntryDoesNotExist: "entry missing (%s)",
|
|
RegressionEntryFail: "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",
|
|
SDLTV: "SDLTV: %s",
|
|
ImageTV: "ImageTV: %s",
|
|
DigestTV: "DigestTV: %s",
|
|
|
|
// 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"
|
|
)
|