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

Go to the source code of this file.

Macros

#define SPC_MAGIC   "SNES-SPC700 Sound File Data"
 
#define SPC_HDR_SIZE   sizeof(spc_hdr)
 
#define RAM_START_ADDRESS   0x100
 
#define RAM_SIZE   0x10000
 
#define DSP_REG_START_ADDRESS   0x10100
 
#define DSP_REG_SIZE   0x80
 
#define EXTRA_RAM_START_ADDRESS   0x101C0
 
#define EXTRA_RAM_SIZE   0x40
 
#define EXTENDED_ID666_START_ADDRESS   0x10200
 

Enumerations

enum  emulator_used { UNKNOWN , ZSNES , SNES9X }
 

Functions

 RZ_PACKED (typedef struct { char song_title[32];char game_title[32];char name_of_dumper[16];char comments[32];ut8 date[11];ut8 num_sec_bef_fade_out[3];ut8 len_fade_out[5];char artist_song[32];bool default_channel_disabled;emulator_used emulator_used[1];ut8 reserved[1];}) id666_tag_text
 
 RZ_PACKED (typedef struct { char song_title[32];char game_title[32];char name_of_dumper[16];char comments[32];ut8 date[4];ut8 unused[8];ut8 num_sec_bef_fade_out[3];ut8 len_fade_out[4];char artist_song[32];bool default_channel_disabled;ut8 reserved[1];}) id666_tag_binary
 
 RZ_PACKED (typedef struct { char signature[33];ut8 signature2[2];ut8 has_id666;ut8 version;}) spc_hdr
 
 RZ_PACKED (typedef struct { ut8 pcl;ut8 pch;ut8 a;ut8 x;ut8 y;ut8 psw;ut8 sp;ut8 reserved_1;ut8 reserved_2;}) spc_reg
 
 RZ_PACKED (typedef struct { ut8 ram[0x10000];ut8 dsp[128];ut8 unused[0x40];ut8 ipl_rom[0x40];}) spc_data
 

Macro Definition Documentation

◆ DSP_REG_SIZE

#define DSP_REG_SIZE   0x80

Definition at line 14 of file spc_specs.h.

◆ DSP_REG_START_ADDRESS

#define DSP_REG_START_ADDRESS   0x10100

Definition at line 13 of file spc_specs.h.

◆ EXTENDED_ID666_START_ADDRESS

#define EXTENDED_ID666_START_ADDRESS   0x10200

Definition at line 19 of file spc_specs.h.

◆ EXTRA_RAM_SIZE

#define EXTRA_RAM_SIZE   0x40

Definition at line 17 of file spc_specs.h.

◆ EXTRA_RAM_START_ADDRESS

#define EXTRA_RAM_START_ADDRESS   0x101C0

Definition at line 16 of file spc_specs.h.

◆ RAM_SIZE

#define RAM_SIZE   0x10000

Definition at line 11 of file spc_specs.h.

◆ RAM_START_ADDRESS

#define RAM_START_ADDRESS   0x100

Definition at line 10 of file spc_specs.h.

◆ SPC_HDR_SIZE

#define SPC_HDR_SIZE   sizeof(spc_hdr)

Definition at line 8 of file spc_specs.h.

◆ SPC_MAGIC

#define SPC_MAGIC   "SNES-SPC700 Sound File Data"

Definition at line 7 of file spc_specs.h.

Enumeration Type Documentation

◆ emulator_used

Enumerator
UNKNOWN 
ZSNES 
SNES9X 

Definition at line 21 of file spc_specs.h.

21  {
22  UNKNOWN,
23  ZSNES,
24  SNES9X,
emulator_used
Definition: spc_specs.h:21
@ UNKNOWN
Definition: spc_specs.h:22
@ ZSNES
Definition: spc_specs.h:23
@ SNES9X
Definition: spc_specs.h:24

Function Documentation

◆ RZ_PACKED() [1/5]

RZ_PACKED ( typedef struct { char signature[33];ut8 signature2[2];ut8 has_id666;ut8 version;}  )

References signature(), and version.

◆ RZ_PACKED() [2/5]

RZ_PACKED ( typedef struct { char song_title[32];char game_title[32];char name_of_dumper[16];char comments[32];ut8 date[11];ut8 num_sec_bef_fade_out[3];ut8 len_fade_out[5];char artist_song[32];bool default_channel_disabled;emulator_used emulator_used[1];ut8 reserved[1];}  )

References reserved.

◆ RZ_PACKED() [3/5]

RZ_PACKED ( typedef struct { char song_title[32];char game_title[32];char name_of_dumper[16];char comments[32];ut8 date[4];ut8 unused[8];ut8 num_sec_bef_fade_out[3];ut8 len_fade_out[4];char artist_song[32];bool default_channel_disabled;ut8 reserved[1];}  )

References reserved.

◆ RZ_PACKED() [4/5]

RZ_PACKED ( typedef struct { ut8 pcl;ut8 pch;ut8 a;ut8 x;ut8 y;ut8 psw;ut8 sp;ut8 reserved_1;ut8 reserved_2;}  )

References a, sp, and x.

◆ RZ_PACKED() [5/5]

RZ_PACKED ( typedef struct { ut8 ram[0x10000];ut8 dsp[128];ut8 unused[0x40];ut8 ipl_rom[0x40];}  )