PSP-EMU rev 57
Un emulador en c++ para SONY PSP
|
00001 00008 #ifndef CMEMORDEN_H_ 00009 #define CMEMORDEN_H_ 00010 00011 #include <stdlib.h> 00012 #include "general_emu.h" 00013 00014 typedef enum 00015 { 00016 MEM_OP_LECTURA, 00017 MEM_OP_ESCRITURA, 00018 MEM_OP_CREAR_BLOQUE 00019 } tMemTipoOperacion; 00020 00021 class cMemOrden 00022 { 00023 private: 00024 tDireccion direccion; 00025 void* dato; 00026 tLongitud longitud; 00027 tMemTipoOperacion operacion; 00028 00029 public: 00030 cMemOrden(); 00031 ~cMemOrden(); 00032 00033 tDireccion obtenerDireccion(void); 00034 void* obtenerDato(void); 00035 tLongitud obtenerLongitud(void); 00036 tMemTipoOperacion obtenerOperacion(void); 00037 00038 tError ponerDireccion(const tDireccion direccion); 00039 tError ponerDato(void* dato); 00040 tError ponerLongitud(const tLongitud longitud); 00041 tError ponerOperacion(const tMemTipoOperacion operacion); 00042 00043 tError copiarOrden(const cMemOrden orden); 00044 }; 00045 00046 #endif /* CMEMORDEN_H_ */