PSP-EMU rev 57
Un emulador en c++ para SONY PSP
'defines' | 'typedefs' | Enumeraciones

Referencia del Archivo general_emu.h

Definiciones auxiliares: Errores, componentes y longitudes de las diferentes divisiones funcionales de memoria. Más...

#include <iostream>
#include <fstream>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
Dependencia gráfica adjunta para general_emu.h:
Gráfico de los archivos que directa o indirectamente incluyen a este archivo:

Ir al código fuente de este archivo.

'defines'

#define MAPMEM_EMROM_DIR   0xBFC00000
#define MAPMEM_EMROM_LONG   0x00001000
#define MAPMEM_KERNEL_DIR   0x88000000
#define MAPMEM_KERNEL_LONG   0x00800000
#define MAPMEM_SCRATCH_DIR   0x00010000
#define MAPMEM_SCRATCH_LONG   0x00001000
#define MAPMEM_USUARIO_DIR   0x08800000
#define MAPMEM_USUARIO_LONG   0x01800000
#define MAX_DIRECCION   0xFFFFFFFF
#define NO_INDICE   -1
#define RUTA_PRE_IPL   "./boot/preipl.bin"
#define VALOR_DEFECTO   0xDEADBEEF

'typedefs'

typedef unsigned char tByte
typedef unsigned int tDato
typedef unsigned int tDireccion
typedef unsigned short int tHalfWord
typedef unsigned int tLongitud
typedef unsigned int tWord

Enumeraciones

enum  tComponente { COMP_NINGUNO, COMP_CPU, COMP_MEMORIA, COMP_VRAM }
enum  tError {
  ERR_OK, ERR_PUNTERO_NULL, ERR_COMP_DESCONOCIDO, ERR_CPU_NO_PREPARADA,
  ERR_CPU_YA_ARRANCADA, ERR_CPU_SIN_MEMORIA, ERR_CPU_COD_OP_GRUESO, ERR_CPU_INSTR_DESCONOCIDA,
  ERR_CPU_NO_ALINEADO, ERR_MEM_DIRECCION_INVALIDA, ERR_MEM_NO_SE_PUDO_RESERVAR, ERR_MEM_LONGITUD_INVALIDA,
  ERR_MEM_MAX_BLOQUES, ERR_MAP_MAX_MAPAS, ERR_MAP_DIRECCION_BASE, ERR_MAP_COMPONENTE,
  ERR_MAP_LONGITUD, ERR_MAP_DIRECCION_FIN, ERR_MAP_VALIDACION, ERR_FICH_NO_ENCONTRADO,
  ERR_LIB_LONG_DESCONOCIDA
}

Descripción detallada

Fecha:
Jan 20, 2011
Autor:
m0skit0

Documentación de los 'defines'

#define MAPMEM_EMROM_DIR   0xBFC00000
#define MAPMEM_EMROM_LONG   0x00001000
#define MAPMEM_KERNEL_DIR   0x88000000
#define MAPMEM_KERNEL_LONG   0x00800000
#define MAPMEM_SCRATCH_DIR   0x00010000
#define MAPMEM_SCRATCH_LONG   0x00001000
#define MAPMEM_USUARIO_DIR   0x08800000
#define MAPMEM_USUARIO_LONG   0x01800000
#define MAX_DIRECCION   0xFFFFFFFF
#define NO_INDICE   -1
#define RUTA_PRE_IPL   "./boot/preipl.bin"
#define VALOR_DEFECTO   0xDEADBEEF

Documentación de los 'typedefs'

typedef unsigned char tByte
typedef unsigned int tDato
typedef unsigned int tDireccion
typedef unsigned short int tHalfWord
typedef unsigned int tLongitud
typedef unsigned int tWord

Documentación de las enumeraciones

Valores de enumeraciones:
COMP_NINGUNO 
COMP_CPU 
COMP_MEMORIA 
COMP_VRAM 
enum tError

Enumeración con los diferentes tipos de errores empleados por el emulador. El propósito principal es la depuración en las fases iniciales de desarrollo

Valores de enumeraciones:
ERR_OK 
ERR_PUNTERO_NULL 
ERR_COMP_DESCONOCIDO 
ERR_CPU_NO_PREPARADA 
ERR_CPU_YA_ARRANCADA 
ERR_CPU_SIN_MEMORIA 
ERR_CPU_COD_OP_GRUESO 
ERR_CPU_INSTR_DESCONOCIDA 
ERR_CPU_NO_ALINEADO 
ERR_MEM_DIRECCION_INVALIDA 
ERR_MEM_NO_SE_PUDO_RESERVAR 
ERR_MEM_LONGITUD_INVALIDA 
ERR_MEM_MAX_BLOQUES 
ERR_MAP_MAX_MAPAS 
ERR_MAP_DIRECCION_BASE 
ERR_MAP_COMPONENTE 
ERR_MAP_LONGITUD 
ERR_MAP_DIRECCION_FIN 
ERR_MAP_VALIDACION 
ERR_FICH_NO_ENCONTRADO 
ERR_LIB_LONG_DESCONOCIDA 
 Todo Clases Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones 'defines'