Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
Add SRAM 768 save type
Browse files Browse the repository at this point in the history
  • Loading branch information
Suprapote authored Jun 24, 2023
1 parent 645df51 commit d6e78b3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions inc/everdrive.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define SAVE_TYPE_EEP4k 3
#define SAVE_TYPE_EEP16k 4
#define SAVE_TYPE_FLASH 5
#define SAVE_TYPE_SRAM768 6
#define DMA_BUFF_ADDR (ROM_LEN - 0x100000)

#define REG_CFG 0
Expand Down
1 change: 1 addition & 0 deletions inc/localevar.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ char *plgmp3;
char *savemem;
char *save32;
char *save128;
char *save768;
char *save4k;
char *save16k;
char *saveflash;
Expand Down
1 change: 1 addition & 0 deletions inc/rom.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@

#define SAVE_SIZE_SRAM 32768
#define SAVE_SIZE_SRAM128 131072
#define SAVE_SIZE_SRAM768 98304
#define SAVE_SIZE_EEP4k 512
#define SAVE_SIZE_EEP16k 2048
#define SAVE_SIZE_FLASH 131072
Expand Down
2 changes: 2 additions & 0 deletions inc/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ int pushSaveToCart(int stype, uint8_t *buffer);
int getSRAM( uint8_t *buffer,int size);
int getSRAM32( uint8_t *buffer);
int getSRAM128( uint8_t *buffer);
int getSRAM768( uint8_t *buffer);
int getEeprom4k( uint8_t *buffer);
int getEeprom16k( uint8_t *buffer);
int getFlashRAM( uint8_t *buffer);

int setSRAM(uint8_t *buffer,int size);
int setSRAM32( uint8_t *buffer);
int setSRAM128( uint8_t *buffer);
int setSRAM768( uint8_t *buffer);
int setEeprom4k( uint8_t *buffer);
int setEeprom16k( uint8_t *buffer);
int setFlashRAM( uint8_t *buffer);
Expand Down

0 comments on commit d6e78b3

Please sign in to comment.