emu.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef HAVE_EMU_H
00029 #define HAVE_EMU_H
00030
00031 #include <stdio.h>
00032 #include <stdint.h>
00033
00034 #ifndef MIN
00035 #define MIN(a,b) (((a)<(b))?(a):(b))
00036 #endif
00037
00038 #ifndef MAX
00039 #define MAX(a,b) (((a)>(b))?(a):(b))
00040 #endif
00041
00042
00043 struct emu;
00044 struct emu_logging;
00045 struct emu_cpu;
00046 struct emu_fpu;
00047
00048
00055 struct emu *emu_new(void);
00056
00062 void emu_free(struct emu *e);
00063
00071 struct emu_memory *emu_memory_get(struct emu *e);
00072
00080 struct emu_logging *emu_logging_get(struct emu *e);
00081
00089 struct emu_cpu *emu_cpu_get(struct emu *e);
00090
00097 void emu_errno_set(struct emu *e, int err);
00098
00106 int emu_errno(struct emu *c);
00107
00114 void emu_strerror_set(struct emu *e, const char *format, ...);
00115
00123 const char *emu_strerror(struct emu *e);
00124
00125
00126
00127
00128 #endif // HAVE_EMU_H