-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.h
27 lines (24 loc) · 1.38 KB
/
errors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/********************************************************************
* 6502 CPU Emulator Library
* ------------------------------------------------------------------
* This project is put together to offer dynamic link library
* for various computer emulators utilizing a 6502 CPU emu layer.
*
* This library is based on the real hardware, it offers functions
* for cycles computation, for op codes resolvent, and contains
* static definitions for the registers, flags and declarations
* for memory assignment. For development purposes, a separate
* download for header files is available for download, including
* op codes definitions in "opcodes.h" file. Choose whichever
* version you're going to go with (Windows or Unix: Linux/MacOS)
* ------------------------------------------------------------------
* File: errors.h
********************************************************************/
#ifndef __ERRORS_H__ // If called multiple times, doesn't produce
#define __ERRORS_H__ // warnings about duplicate definitions
// Error codes definition
#define ERR_OPCODE 1001 // Op code couldn't be resolved
#define ERR_OUT_OF_BOUND 1002 // Access out of bound
#define ERR_CYCLES 1003 // Cycles error
#define ERR_OUT_OF_MEM 1004 // Insufficient memory
#endif