Merge pull request #2878 from jriwanek-forks/formatting

Even more formatting
This commit is contained in:
Jasmine Iwanek
2022-11-19 13:43:08 -05:00
committed by GitHub
378 changed files with 77846 additions and 75590 deletions

View File

@@ -320,7 +320,9 @@ ymfm_drv_read(uint16_t port, void *priv)
{
YMFMChipBase *drv = (YMFMChipBase *) priv;
if (port == 0x381) { port += 4; } /* Point to register read port. */
if (port == 0x381) {
port += 4;
} /* Point to register read port. */
if (drv->flags() & FLAG_CYCLES) {
cycles -= ((int) (isa_timing * 8));
}
@@ -337,7 +339,9 @@ ymfm_drv_write(uint16_t port, uint8_t val, void *priv)
{
YMFMChipBase *drv = (YMFMChipBase *) priv;
ymfm_log("YMFM write port %04x value = %02x\n", port, val);
if (port == 0x380 || port == 0x381) { port += 4; }
if (port == 0x380 || port == 0x381) {
port += 4;
}
drv->write(port, val);
drv->update();
}