-vsmile, nes_clone: Fixed issues for release.

This commit is contained in:
Ryan Holtz 2020-07-27 03:40:53 +02:00
parent 4b9fa2c256
commit 1f49ddb97f
2 changed files with 10 additions and 12 deletions

View File

@ -426,19 +426,17 @@ void nes_clone_vtvppong_state::init_vtvppong()
std::copy(buffer.begin(), buffer.end(), &src[0]); std::copy(buffer.begin(), buffer.end(), &src[0]);
} }
if (1) #if 0
FILE *fp;
char filename[256];
sprintf(filename,"decrypted_%s", machine().system().name);
fp=fopen(filename, "w+b");
if (fp)
{ {
FILE *fp; fwrite(&src[0], len, 1, fp);
char filename[256]; fclose(fp);
sprintf(filename,"decrypted_%s", machine().system().name);
fp=fopen(filename, "w+b");
if (fp)
{
fwrite(&src[0], len, 1, fp);
fclose(fp);
}
} }
#endif
} }

View File

@ -95,7 +95,7 @@ uint16_t vsmile_state::portb_r()
void vsmile_state::portb_w(offs_t offset, uint16_t data, uint16_t mem_mask) void vsmile_state::portb_w(offs_t offset, uint16_t data, uint16_t mem_mask)
{ {
LOG("%s: portb_w: %04x & %04x (bit 1: %d & %d)\n", machine().describe_context(), data, mem_mask, BIT(data, 1), BIT(mem_mask, 1)); LOG("%s: portb_w: %04x & %04x (bit 1: %d & %d)\n", machine().describe_context(), data, mem_mask, BIT(data, 1), BIT(mem_mask, 1));
if (BIT(mem_mask, 1)) if (BIT(mem_mask, 1) && m_cart)
m_cart->set_cs2(BIT(~data, 1)); m_cart->set_cs2(BIT(~data, 1));
} }