Rizin
unix-like reverse engineering framework and cli tools
sfc_specs.h File Reference

Go to the source code of this file.

Macros

#define LOROM_PAGE_SIZE   0x8000
 
#define HIROM_PAGE_SIZE   0x10000
 
#define BANK_SIZE   0x10000
 
#define SFC_HDR_SIZE   sizeof(sfc_int_hdr)
 
#define LOROM_HDR_LOC   0x7FC0
 
#define HIROM_HDR_LOC   0xFFC0
 
#define ADDMEM_START_ADDRESS   0x6000
 
#define ADDMEM_SIZE   0x2000
 
#define PPU1_REG_ADDRESS   0x2100
 
#define PPU1_REG_SIZE   0x0100
 
#define DSP_REG_ADDRESS   0x3000
 
#define DSP_REG_SIZE   0x1000
 
#define OLDJOY_REG_ADDRESS   0x4000
 
#define OLDJOY_REG_SIZE   0x0100
 
#define PPU2_REG_ADDRESS   0x4200
 
#define PPU2_REG_SIZE   0x0300
 
#define LOWRAM_START_ADDRESS   0x7E0000
 
#define LOWRAM_SIZE   0x2000
 
#define LOWRAM_MIRROR_START_ADDRESS   0x0000
 
#define LOWRAM_MIRROR_SIZE   0x2000
 
#define HIRAM_START_ADDRESS   0x7E2000
 
#define HIRAM_SIZE   0x6000
 
#define EXTRAM_START_ADDRESS   0x7E8000
 
#define EXTRAM_SIZE   0x18000
 

Functions

 RZ_PACKED (typedef struct { char name[0x15];ut8 rom_setup;ut8 rom_type;ut8 rom_size;ut8 sram_size;ut8 dest_code;ut8 fixed_0x33;ut8 rom_version;ut16 comp_check;ut16 checksum;}) sfc_int_hdr
 

Macro Definition Documentation

◆ ADDMEM_SIZE

#define ADDMEM_SIZE   0x2000

Definition at line 18 of file sfc_specs.h.

◆ ADDMEM_START_ADDRESS

#define ADDMEM_START_ADDRESS   0x6000

Definition at line 17 of file sfc_specs.h.

◆ BANK_SIZE

#define BANK_SIZE   0x10000

Definition at line 11 of file sfc_specs.h.

◆ DSP_REG_ADDRESS

#define DSP_REG_ADDRESS   0x3000

Definition at line 25 of file sfc_specs.h.

◆ DSP_REG_SIZE

#define DSP_REG_SIZE   0x1000

Definition at line 26 of file sfc_specs.h.

◆ EXTRAM_SIZE

#define EXTRAM_SIZE   0x18000

Definition at line 44 of file sfc_specs.h.

◆ EXTRAM_START_ADDRESS

#define EXTRAM_START_ADDRESS   0x7E8000

Definition at line 43 of file sfc_specs.h.

◆ HIRAM_SIZE

#define HIRAM_SIZE   0x6000

Definition at line 41 of file sfc_specs.h.

◆ HIRAM_START_ADDRESS

#define HIRAM_START_ADDRESS   0x7E2000

Definition at line 40 of file sfc_specs.h.

◆ HIROM_HDR_LOC

#define HIROM_HDR_LOC   0xFFC0

Definition at line 15 of file sfc_specs.h.

◆ HIROM_PAGE_SIZE

#define HIROM_PAGE_SIZE   0x10000

Definition at line 10 of file sfc_specs.h.

◆ LOROM_HDR_LOC

#define LOROM_HDR_LOC   0x7FC0

Definition at line 14 of file sfc_specs.h.

◆ LOROM_PAGE_SIZE

#define LOROM_PAGE_SIZE   0x8000

Definition at line 9 of file sfc_specs.h.

◆ LOWRAM_MIRROR_SIZE

#define LOWRAM_MIRROR_SIZE   0x2000

Definition at line 38 of file sfc_specs.h.

◆ LOWRAM_MIRROR_START_ADDRESS

#define LOWRAM_MIRROR_START_ADDRESS   0x0000

Definition at line 37 of file sfc_specs.h.

◆ LOWRAM_SIZE

#define LOWRAM_SIZE   0x2000

Definition at line 35 of file sfc_specs.h.

◆ LOWRAM_START_ADDRESS

#define LOWRAM_START_ADDRESS   0x7E0000

Definition at line 34 of file sfc_specs.h.

◆ OLDJOY_REG_ADDRESS

#define OLDJOY_REG_ADDRESS   0x4000

Definition at line 28 of file sfc_specs.h.

◆ OLDJOY_REG_SIZE

#define OLDJOY_REG_SIZE   0x0100

Definition at line 29 of file sfc_specs.h.

◆ PPU1_REG_ADDRESS

#define PPU1_REG_ADDRESS   0x2100

Definition at line 22 of file sfc_specs.h.

◆ PPU1_REG_SIZE

#define PPU1_REG_SIZE   0x0100

Definition at line 23 of file sfc_specs.h.

◆ PPU2_REG_ADDRESS

#define PPU2_REG_ADDRESS   0x4200

Definition at line 31 of file sfc_specs.h.

◆ PPU2_REG_SIZE

#define PPU2_REG_SIZE   0x0300

Definition at line 32 of file sfc_specs.h.

◆ SFC_HDR_SIZE

#define SFC_HDR_SIZE   sizeof(sfc_int_hdr)

Definition at line 13 of file sfc_specs.h.

Function Documentation

◆ RZ_PACKED()

RZ_PACKED ( typedef struct { char name[0x15];ut8 rom_setup;ut8 rom_type;ut8 rom_size;ut8 sram_size;ut8 dest_code;ut8 fixed_0x33;ut8 rom_version;ut16 comp_check;ut16 checksum;}  )