Adding VS Code workspace file to the repo

This commit is contained in:
Alex Duchesne 2020-11-05 03:31:56 -05:00
parent 1a62a62b25
commit d312a92e6d
3 changed files with 73 additions and 7 deletions

View File

@ -93,18 +93,18 @@ static char *sramfile=NULL;
#define NOSAVE { -1, "\0\0\0\0", 0 }
#define END { 0, "\0\0\0\0", 0 }
struct svar
typedef struct
{
int len;
char key[4];
void *ptr;
};
} svar_t;
static int ver;
static int sramblock, iramblock, vramblock;
static int hiofs, palofs, oamofs, wavofs;
struct svar svars[] =
static svar_t svars[] =
{
I4("GbSs", &ver),
@ -183,6 +183,7 @@ struct svar svars[] =
END
};
int IRAM_ATTR rom_loadbank(short bank)
{
const size_t BANK_SIZE = 0x4000;
@ -376,7 +377,7 @@ int state_save(char *name)
int vrl = hw.cgb ? 4 : 2;
int srl = mbc.ramsize << 1;
ver = 0x105;
ver = 0x106;
iramblock = 1;
vramblock = 1+irl;
sramblock = 1+irl+vrl;
@ -537,6 +538,7 @@ void loader_unload()
// ram.sbank = NULL;
}
void loader_init(char *s)
{
romfile = odroid_system_get_path(ODROID_PATH_ROM_FILE, 0);

View File

@ -35,7 +35,7 @@ typedef struct {
uchar vdc_satb_counter; /* DMA finished interrupt delay counter */
uchar vdc_pendvsync; /* unsure, set if a end of screen IRQ is waiting */
uchar vdc_mode_chg; /* Video mode change needed at next frame */
uint16 bg_w; /* number of tiles horizontaly in virtual screen */
uint16 bg_w; /* number of tiles horizontally in virtual screen */
uint16 bg_h; /* number of tiles vertically in virtual screen */
uint16 screen_w; /* size of real screen in pixels */
uint16 screen_h; /* size of real screen in pixels */
@ -257,7 +257,7 @@ extern uchar *MemoryMapW[256];
#define VRR 2
enum _VDC_REG {
MAWR, /* 0 *//* Memory Address Write Register */
MARR, /* 1 *//* Memory Adress Read Register */
MARR, /* 1 *//* Memory Address Read Register */
VWR, /* 2 *//* VRAM Read Register / VRAM Write Register */
vdc3, /* 3 */
vdc4, /* 4 */
@ -275,7 +275,7 @@ enum _VDC_REG {
SOUR, /* 10 *//* Source Address of DMA transfert */
DISTR, /* 11 *//* Destination Address of DMA transfert */
LENR, /* 12 *//* Length of DMA transfert */
SATB /* 13 *//* Adress of SATB */
SATB /* 13 *//* Address of SATB */
};

64
retro-go.code-workspace Normal file
View File

@ -0,0 +1,64 @@
{
"folders": [
{
"path": "components"
},
{
"path": "gnuboy-go"
},
{
"path": "handy-go"
},
{
"path": "huexpress-go"
},
{
"path": "nofrendo-go"
},
{
"path": "retro-go"
},
{
"path": "smsplusgx-go"
},
{
"path": ".",
"name": "root"
}
],
"settings": {
"esp.sdk-path": "C:/Users/alex/Apps/esp-idf/4.0",
"esp.tools-path": "C:/Users/alex/Apps/esp-idf/tools/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf",
"git.confirmForcePush": false,
"C_Cpp.default.defines": [
"PROJECT_VER",
"IS_LITTLE_ENDIAN",
"INLINE=",
"uint=unsigned int",
],
"C_Cpp.default.includePath": [
"${workspaceFolder}/components/**",
"${workspaceFolder}/../components/**",
"${config:esp.sdk-path}/components/**",
"${config:esp.tools-path}/include/**"
],
"C_Cpp.default.forcedInclude": [
"${workspaceFolder}/build/config/sdkconfig.h",
"${workspaceFolder}/build/sdkconfig.h",
],
"C_Cpp.default.compilerPath": "${config:esp.tools-path}/bin/xtensa-esp32-elf-g++.exe",
"C_Cpp.default.cStandard": "c11",
"C_Cpp.default.cppStandard": "c++11",
"C_Cpp.default.intelliSenseMode": "gcc-x64",
"cSpell.words": [
"huexpress",
"nofrendo",
"smsplusgx",
"supergraphx"
],
"files.exclude": {
"root": true,
}
}
}