This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NETLIST_START(pong_schematics) | |
SOLVER(Solver, 48000) | |
PARAM(Solver.ACCURACY, 1e-4) // works and is sufficient | |
ANALOG_INPUT(V5, 5) | |
TTL_INPUT(high, 1) | |
TTL_INPUT(low, 0) | |
MAINCLOCK(clk, 7159000.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I've noticed that some core files have been modified to use "auto" rather than actual type specifiers. | |
While "auto" works in some cases, I would like to highlight what I'm going through as a specific example of why "auto" is dangerous and should not be used. | |
In the cashier-knife branch, all I want is to clean up a few lines of code. The only problem that I'm running into is that this line in rendlay.cpp is throwing an error when I try to change it even slightly: | |
auto const make_func(s_make_component.find(compnode->name)); | |
Based on a naive grep of the associated source, I have yet to determine why this particular line is throwing an error, and what I can do to fix it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
item_layer layout_view::get_layer_and_blendmode(int index, int &blendmode) | |
{ | |
// if we have multiple backdrop pieces and no overlays, render: | |
// backdrop (add) + screens (add) + bezels (alpha) + cpanels (alpha) + marquees (alpha) | |
// else render: | |
// screens (add) + overlays (RGB multiply) + backdrop (add) + bezels (alpha) + cpanels (alpha) + marquees (alpha) | |
const int *layer_order = s_layer_order_standard; | |
if (items(ITEM_LAYER_BACKDROP).count() > 1 && items(ITEM_LAYER_OVERLAY).empty()) | |
layer_order = s_layer_order_alternate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline item_layer get_layer_and_blendmode(const layout_view &view, int index, int &blendmode) | |
{ | |
// if we have multiple backdrop pieces and no overlays, render: | |
// backdrop (add) + screens (add) + bezels (alpha) + cpanels (alpha) + marquees (alpha) | |
// else render: | |
// screens (add) + overlays (RGB multiply) + backdrop (add) + bezels (alpha) + cpanels (alpha) + marquees (alpha) | |
const int *layer_order = layer_order_standard; | |
if (view.items(ITEM_LAYER_BACKDROP).count() > 1 && view.items(ITEM_LAYER_OVERLAY).empty()) | |
layer_order = layer_order_alternate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In file included from C:/mingw/mame/src/emu/emu.h:89:0, | |
from ../../../../../src/mame/drivers/tnzs.cpp:623: | |
C:/mingw/mame/src/emu/gamedrv.h:119:1: error: no matches converting function 'dr | |
iver_init_wrapper' to type 'void (*)(class running_machine&)' | |
}; | |
^ | |
../../../../../src/mame/drivers/tnzs.cpp:2536:1: note: in expansion of macro 'GA | |
ME' | |
GAME( 1992, jpopnics, 0, jpopnics, jpopnics, jpopnics_state,0, R | |
OT0, "Nics", "Jumping Pop (Nics, Korean hack of Plump Pop)", MACH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
000000000000000000000000000000000000000000000000000000000000000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010000111010001000110001000110001000110001000110001000110001000110001000110001000110001000110001000110001000110001000110001000110001 | |
000110001000110001000110001000110001000110001000110001000110001000110001000110001000110001000110001000110001000110001000110 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
000000000000000000000000000000000000000000000000000000000000001000001001000001001000001001000001001000001001000001001000001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CE1Q1 CE2Q1 11000110 f | |
CE1Q1 CE2Q1 10000110 0 | |
CE1Q1 CE2Q1 00000110 0 | |
CE1Q1 CE2Q1 10000110 0 | |
CE1Q1 CE2Q1 11000110 f | |
CE1Q1 CE2Q1 01000110 0 | |
CE1Q1 CE2Q1 11000110 f | |
CE1Q1 CE2Q1 11000100 0 | |
CE1Q1 CE2Q1 11000000 9 | |
CE1Q1 CE2Q1 10000000 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// license:BSD-3-Clause | |
// copyright-holders:Ryan Holtz | |
/*************************************************************************** | |
Netlist (hazelvid) included from hazeltin.cpp | |
***************************************************************************/ | |
#include "netlist/devices/net_lib.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define check_delay_PC() \ | |
do \ | |
{ \ | |
/* if PC is used in a delay instruction, the delayed PC should be used */ \ | |
if (m_delay_slot) \ | |
{ \ | |
PC = m_delay_pc; \ | |
m_delay_slot = false; \ | |
} \ | |
} while (0) |