/dports/games/libretro-fceumm/libretro-fceumm-91ccd3b/src/boards/ |
H A D | 164.c | 29 static uint8 *WRAM = NULL; variable 110 if (WRAM) in Close() 111 FCEU_gfree(WRAM); in Close() 112 WRAM = NULL; in Close() 121 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper164_Init() 123 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper164_Init() 126 info->SaveGame[0] = WRAM; in Mapper164_Init() 170 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper163_Init() 172 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper163_Init() 175 info->SaveGame[0] = WRAM; in Mapper163_Init() [all …]
|
H A D | KS7030.c | 43 static uint8 *WRAM = NULL; variable 68 WRAM[A - 0x6000] = V; in DECLFW() 78 return WRAM[A - 0x6000]; in DECLFR() 94 WRAM[0x0C00 + (A - 0xB800)] = V; in DECLFW() 98 WRAM[0x1400 + (A - 0xCC00)] = V; in DECLFW() 104 return WRAM[0x0C00 + (A - 0xB800)]; in DECLFR() 108 return WRAM[0x1400 + (A - 0xCC00)]; in DECLFR() 137 if (WRAM) in UNLKS7030Close() 138 FCEU_gfree(WRAM); in UNLKS7030Close() 139 WRAM = NULL; in UNLKS7030Close() [all …]
|
H A D | mmc2and4.c | 27 static uint8 *WRAM = NULL; variable 110 if (WRAM) in MMC2and4Close() 111 FCEU_gfree(WRAM); in MMC2and4Close() 112 WRAM = NULL; in MMC2and4Close() 124 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper9_Init() 126 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper9_Init() 128 info->SaveGame[0] = WRAM; in Mapper9_Init() 143 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper10_Init() 144 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in Mapper10_Init() 145 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper10_Init() [all …]
|
H A D | edu2000.c | 24 static uint8 *WRAM = NULL; variable 51 FCEU_CheatAddRAM(32, 0x6000, WRAM); in UNLEDU2000Power() 57 if (WRAM) in UNLEDU2000Close() 58 FCEU_gfree(WRAM); in UNLEDU2000Close() 59 WRAM = NULL; in UNLEDU2000Close() 70 WRAM = (uint8*)FCEU_gmalloc(32768); in UNLEDU2000_Init() 71 SetupCartPRGMapping(0x10, WRAM, 32768, 1); in UNLEDU2000_Init() 73 info->SaveGame[0] = WRAM; in UNLEDU2000_Init() 76 AddExState(WRAM, 32768, 0, "WRAM"); in UNLEDU2000_Init()
|
H A D | KS7037.c | 28 static uint8 *WRAM = NULL; variable 87 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in LH10Power() 91 if (WRAM) in Close() 92 FCEU_gfree(WRAM); in Close() 93 WRAM = NULL; in Close() 107 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in UNLKS7037_Init() 108 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in UNLKS7037_Init() 109 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in UNLKS7037_Init() 122 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in LH10_Init() 123 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in LH10_Init() [all …]
|
H A D | 177.c | 25 static uint8 *WRAM = NULL; variable 53 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in M177Power() 57 if (WRAM) in M177Close() 58 FCEU_gfree(WRAM); in M177Close() 59 WRAM = NULL; in M177Close() 78 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper177_Init() 79 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in Mapper177_Init() 80 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper177_Init() 82 info->SaveGame[0] = WRAM; in Mapper177_Init()
|
H A D | 104.c | 26 static uint8 *WRAM = NULL; variable 56 if (WRAM) in M104Close() 57 FCEU_gfree(WRAM); in M104Close() 58 WRAM = NULL; in M104Close() 70 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in M104Power() 83 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper104_Init() 84 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in Mapper104_Init() 85 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper104_Init() 87 info->SaveGame[0] = WRAM; in Mapper104_Init()
|
H A D | 246.c | 24 static uint8 *WRAM = NULL; variable 57 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in M246Power() 61 if (WRAM) in M246Close() 62 FCEU_gfree(WRAM); in M246Close() 63 WRAM = NULL; in M246Close() 76 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper246_Init() 77 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in Mapper246_Init() 78 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper246_Init() 81 info->SaveGame[0] = WRAM; in Mapper246_Init()
|
H A D | 103.c | 28 static uint8 *WRAM = NULL; variable 61 WRAM[A & 0x1FFF] = V; in DECLFW() 65 WRAM[0x2000 + ((A - 0xB800) & 0x1FFF)] = V; in DECLFW() 97 if (WRAM) in M103Close() 98 FCEU_gfree(WRAM); in M103Close() 99 WRAM = NULL; in M103Close() 112 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper103_Init() 113 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in Mapper103_Init() 114 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper103_Init()
|
H A D | lh53.c | 29 static uint8 *WRAM = NULL; variable 55 WRAM[(A - 0xB800) & 0x1FFF] = V; in DECLFW() 85 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in LH53Power() 89 if (WRAM) in LH53Close() 90 FCEU_gfree(WRAM); in LH53Close() 91 WRAM = NULL; in LH53Close() 105 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in LH53_Init() 106 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in LH53_Init() 107 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in LH53_Init()
|
H A D | transformer.c | 36 static uint8 *WRAM = NULL; variable 86 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in TransformerPower() 92 if (WRAM) in TransformerClose() 93 FCEU_gfree(WRAM); in TransformerClose() 94 WRAM = NULL; in TransformerClose() 102 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Transformer_Init() 103 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in Transformer_Init() 105 info->SaveGame[0] = WRAM; in Transformer_Init() 108 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Transformer_Init()
|
H A D | lh32.c | 28 static uint8 *WRAM = NULL; variable 57 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in LH32Power() 61 if (WRAM) in LH32Close() 62 FCEU_gfree(WRAM); in LH32Close() 63 WRAM = NULL; in LH32Close() 75 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in LH32_Init() 76 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in LH32_Init() 77 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in LH32_Init()
|
H A D | 99.c | 24 static uint8 *WRAM = NULL; variable 54 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in M99Power() 58 if (WRAM) in M99Close() 59 FCEU_gfree(WRAM); in M99Close() 60 WRAM = NULL; in M99Close() 72 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper99_Init() 73 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in Mapper99_Init() 74 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper99_Init()
|
H A D | KS7012.c | 27 static uint8 *WRAM = NULL; variable 57 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in UNLKS7012Power() 70 if (WRAM) in UNLKS7012Close() 71 FCEU_gfree(WRAM); in UNLKS7012Close() 72 WRAM = NULL; in UNLKS7012Close() 81 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in UNLKS7012_Init() 82 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in UNLKS7012_Init() 83 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in UNLKS7012_Init()
|
H A D | bj56.c | 31 static uint8 *WRAM = NULL; variable 84 if (WRAM) in UNLBJ56Close() 85 FCEU_gfree(WRAM); in UNLBJ56Close() 86 WRAM = NULL; in UNLBJ56Close() 98 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in UNLBJ56Power() 111 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in UNLBJ56_Init() 112 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in UNLBJ56_Init() 114 info->SaveGame[0] = WRAM; in UNLBJ56_Init() 117 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in UNLBJ56_Init()
|
H A D | 82.c | 27 static uint8 *WRAM = NULL; variable 71 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in M82Power() 75 if (WRAM) in M82Close() 76 FCEU_gfree(WRAM); in M82Close() 77 WRAM = NULL; in M82Close() 89 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper82_Init() 90 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in Mapper82_Init() 91 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper82_Init() 93 info->SaveGame[0] = WRAM; in Mapper82_Init()
|
H A D | lh51.c | 32 static uint8 *WRAM = NULL; variable 65 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in LH51Power() 69 if (WRAM) in LH51Close() 70 FCEU_gfree(WRAM); in LH51Close() 71 WRAM = NULL; in LH51Close() 84 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in LH51_Init() 85 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in LH51_Init() 86 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in LH51_Init()
|
H A D | 34.c | 33 static uint8 *WRAM = NULL; variable 69 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in M34Power() 73 if (WRAM) in M34Close() 74 FCEU_gfree(WRAM); in M34Close() 75 WRAM = NULL; in M34Close() 88 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper34_Init() 89 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in Mapper34_Init() 90 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper34_Init()
|
H A D | 186.c | 26 static uint8 *WRAM = NULL; variable 72 FCEU_CheatAddRAM(32, 0x6000, WRAM); in M186Power() 78 if (WRAM) in M186Close() 79 FCEU_gfree(WRAM); in M186Close() 80 WRAM = NULL; in M186Close() 91 WRAM = (uint8*)FCEU_gmalloc(32768); in Mapper186_Init() 92 SetupCartPRGMapping(0x10, WRAM, 32768, 1); in Mapper186_Init() 93 AddExState(WRAM, 32768, 0, "WRAM"); in Mapper186_Init()
|
H A D | 15.c | 26 static uint8 *WRAM = NULL; variable 87 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in M15Power() 98 if (WRAM) in M15Close() 99 FCEU_gfree(WRAM); in M15Close() 100 WRAM = NULL; in M15Close() 109 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in Mapper15_Init() 110 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in Mapper15_Init() 112 info->SaveGame[0] = WRAM; in Mapper15_Init() 115 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in Mapper15_Init()
|
H A D | 190.c | 25 static uint8 *WRAM = NULL; variable 62 FCEU_CheatAddRAM(0x2000 >> 10, 0x6000, WRAM); in M190Power() 73 if (WRAM) in M190Close() 74 FCEU_gfree(WRAM); in M190Close() 75 WRAM = NULL; in M190Close() 85 WRAM = (uint8*)FCEU_gmalloc(0x2000); in Mapper190_Init() 86 SetupCartPRGMapping(0x10, WRAM, 0x2000, 1); in Mapper190_Init() 87 AddExState(WRAM, 0x2000, 0, "WRAM"); in Mapper190_Init()
|
H A D | 112.c | 28 static uint8 *WRAM = NULL; variable 61 if (WRAM) in M112Close() 62 FCEU_gfree(WRAM); in M112Close() 63 WRAM = NULL; in M112Close() 75 FCEU_CheatAddRAM(8, 0x6000, WRAM); in M112Power() 86 WRAM = (uint8*)FCEU_gmalloc(8192); in Mapper112_Init() 87 SetupCartPRGMapping(0x10, WRAM, 8192, 1); in Mapper112_Init() 88 AddExState(WRAM, 8192, 0, "WRAM"); in Mapper112_Init()
|
H A D | famicombox.c | 24 static uint8 *WRAM = NULL; variable 86 FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM); in SSSNROMPower() 94 if (WRAM) in SSSNROMClose() 95 FCEU_gfree(WRAM); in SSSNROMClose() 96 WRAM = NULL; in SSSNROMClose() 115 WRAM = (uint8*)FCEU_gmalloc(WRAMSIZE); in SSSNROM_Init() 116 SetupCartPRGMapping(0x10, WRAM, WRAMSIZE, 1); in SSSNROM_Init() 117 AddExState(WRAM, WRAMSIZE, 0, "WRAM"); in SSSNROM_Init()
|
/dports/emulators/mednafen/mednafen/src/nes/boards/ |
H A D | 240.cpp | 23 static uint8 WRAM[8192]; variable 40 WRAM[A-0x6000]=V; in DECLFW() 45 return(WRAM[A-0x6000]); in DECLFR() 54 memset(WRAM, 0xFF, 8192); in Power() 62 SFPTR8(WRAM, 8192), in StateAction() 86 memset(WRAM, 0xFF, 8192); in Mapper240_Init() 88 MDFNMP_AddRAM(8192, 0x6000, WRAM); in Mapper240_Init() 91 info->SaveGame[0] = WRAM; in Mapper240_Init()
|
H A D | 241.cpp | 23 static uint8 WRAM[8192]; variable 51 WRAM[A-0x6000]=V; in DECLFW() 57 return(WRAM[A-0x6000]); in DECLFR() 67 memset(WRAM, 0xFF, 8192); in Power() 74 SFPTR8(WRAM, 8192), in StateAction() 99 memset(WRAM, 0xFF, 8192); in Mapper241_Init() 101 MDFNMP_AddRAM(8192, 0x6000, WRAM); in Mapper241_Init() 104 info->SaveGame[0] = WRAM; in Mapper241_Init()
|