mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2025-04-02 11:02:17 -04:00
- debugger now handles CTRL-Z signals for terminal that have been put into raw mode; like the colorterm package - CTRL-C now asks for confirmation - added EXIT command as an alternative to QUIT o colorterm - CTRL-C clears input line if anything has been typed - input buffer checked for length before writing
84 lines
1.1 KiB
Go
84 lines
1.1 KiB
Go
package errors
|
|
|
|
// list of error numbers
|
|
const (
|
|
FatalError Errno = iota
|
|
|
|
// sentinal
|
|
UserInterrupt
|
|
UserSuspend
|
|
ScriptEnd
|
|
PowerOff
|
|
PeriphUnplugged
|
|
TVOutOfSpec
|
|
|
|
// program modes
|
|
PlayError
|
|
DebuggerError
|
|
DisasmError
|
|
FPSError
|
|
|
|
// debugger
|
|
ParserError
|
|
ValidationError
|
|
InvalidTarget
|
|
CommandError
|
|
TerminalError
|
|
|
|
// script
|
|
ScriptScribeError
|
|
ScriptFileUnavailable
|
|
ScriptFileError
|
|
ScriptRunError
|
|
|
|
// recorder
|
|
RecordingError
|
|
PlaybackError
|
|
PlaybackHashError
|
|
|
|
// regression
|
|
RegressionDBError
|
|
RegressionFail
|
|
|
|
// symbols
|
|
SymbolsFileUnavailable
|
|
SymbolsFileError
|
|
SymbolUnknown
|
|
|
|
// vcs
|
|
VCSError
|
|
|
|
// cpu
|
|
UnimplementedInstruction
|
|
InvalidOpcode
|
|
InvalidResult
|
|
ProgramCounterCycled
|
|
InvalidOperationMidInstruction
|
|
|
|
// memory
|
|
MemoryError
|
|
UnreadableAddress
|
|
UnwritableAddress
|
|
UnpokeableAddress
|
|
UnrecognisedAddress
|
|
|
|
// cartridges
|
|
CartridgeFileError
|
|
CartridgeFileUnavailable
|
|
CartridgeError
|
|
CartridgeEjected
|
|
|
|
// peripherals
|
|
PeriphHardwareUnavailable
|
|
UnknownPeriphEvent
|
|
|
|
// tv
|
|
UnknownTVRequest
|
|
BasicTelevision
|
|
ImageTV
|
|
DigestTV
|
|
|
|
// gui
|
|
UnknownGUIRequest
|
|
SDL
|
|
)
|