summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/modules.lua
Commit message (Expand)AuthorAgeFilesLines
* Compile bgfx Miodrag Milanovic2021-08-101-1/+0
* sound: Pulseaudio support Olivier Galibert2021-04-161-0/+29
* -bgfx: Corrected a data overrun in the d3d12 backend from allocating only eno... Ryan Holtz2020-06-201-0/+38
* Removed winpcap and cleaned up network module selection. Vas Crabb2020-03-051-4/+33
* Add include folder 3rdparty/bgfx/3rdparty/khronos too (nw) yz70s2019-10-131-0/+1
* Preliminary Mac native OSD. Not working yet. [R. Belmont] arbee2019-09-151-0/+2
* gdbstub: added new GDB stub debugger (#5456) Ramiro Polla2019-08-111-0/+1
* fix vsllvm configuration feos2019-06-031-0/+1
* Enable use of system-wide asio, glm and rapidjson (#3172) Julian Sikorski2018-02-081-2/+2
* -bgfx: Abstracted some view-related functions into bgfx_view class, nw mooglyguy2018-01-131-0/+1
* remove qtmain on windows, it conflicts with SDL2_Main (nw) smf-2017-12-261-1/+0
* Remove emu.h from headers (nw) Olivier Galibert2017-02-111-9/+9
* Fixed building using system portaudio Julian Sikorski2017-01-261-0/+4
* Initial PortAudio backend with build script changes to support library versio... inte alls2017-01-111-0/+25
* Add basic keyboard input to UWP (nw) Brad Hughes2016-11-111-0/+1
* ASIO - header only mode (nw) Miodrag Milanovic2016-11-021-1/+0
* Replaced code usage of libuv with asio library (nw) Miodrag Milanovic2016-10-071-13/+2
* Convert OSD monitor info to modules plus add DXGI implementation Brad Hughes2016-09-141-0/+6
* Add Lua-cleaning ability to srcclean Vas Crabb2016-08-301-2/+2
* Merge pull request #1072 from oxc/pkg_config_from_env R. Belmont2016-07-161-3/+11
|\
| * Take pkg-config path from env if defined Bernhard Frauendienst2016-07-091-3/+11
* | balance configuration macros in genie scripts Vas Crabb2016-07-131-5/+6
|/
* Add a couple msys2 updated mingw headers to winsdk-override to support linux ... Brad Hughes2016-07-021-5/+3
* Added initial ninja support to use add MAKETYPE=ninja to compile command line... Miodrag Milanovic2016-06-091-1/+1
* Placed back old output system as module "-output windows" need more things cl... Miodrag Milanovic2016-06-051-0/+2
* no deps between osd and frontend, internal debugger removed (nw) Miodrag Milanovic2016-05-061-4/+0
* enabled internal debugger, but this would need to go in time, it is too coupl... Miodrag Milanovic2016-04-231-0/+4
* Split UI and frontend part from core [Miodrag Milanovic] Miodrag Milanovic2016-04-231-1/+0
* Create diagnostic module for profiling and crash diagnostics Brad Hughes2016-04-171-0/+3
* Add AVI writing to bgfx, nw therealmogminer@gmail.com2016-04-171-0/+2
* Added ImGui based debugger. [Barry Rodewald] mahlemiut2016-04-171-0/+1
* Revert "Pass explicit -qt5 to all moc and qmake calls." Miodrag Milanovic2016-04-161-10/+10
* Merge pull request #813 from jmallach/qt5-build Miodrag Milanović2016-04-161-10/+10
|\
| * Pass explicit -qt5 to all moc and qmake calls. Sune Vuorela2016-04-151-10/+10
* | Update windows to use platform independent watchdog implementation (nw) Miodrag Milanovic2016-04-151-0/+2
|/
* bgfx: Add data-driven render target clearing [Ryan Holtz] therealmogminer@gmail.com2016-04-141-0/+4
* Basic TCP server based on libuv [Inaki Baz Castillo,Miodrag Milanovic] Miodrag Milanovic2016-04-101-0/+12
* Added skeleton for network output (nw) Miodrag Milanovic2016-04-091-0/+4
* Added none and console output providers (nw) Miodrag Milanovic2016-04-091-0/+3
* Pull a bunch of screen chain code from drawbgfx to chainmanager where it belo... therealmogminer@gmail.com2016-04-061-0/+2
* Added some more files to bgfx build and initialize imgui (nw) Miodrag Milanovic2016-04-051-1/+4
* Hybrid DirectInput/XInput module Brad Hughes2016-04-041-0/+4
* scrclean on lua scripts (nw) Miodrag Milanovic2016-03-291-11/+11
* fix include dirs (nw) Jeffrey Clark2016-03-291-0/+4
* Initial work to make MAME work on Android [Miodrag Milanovic] Miodrag Milanovic2016-03-271-0/+6
* Merge with master therealmogminer@gmail.com2016-03-211-0/+6
|\
| * Fix VS Build issue for WRL ComPtr Brad Hughes2016-03-191-0/+6
* | Fix lots of issues with bgfx therealmogminer@gmail.com2016-03-211-0/+1
* | Make JSON error checking a lot more verbose therealmogminer@gmail.com2016-03-191-0/+1
* | Add most of the rest of the D3D HLSL chain, nw therealmogminer@gmail.com2016-03-151-0/+1
0; p < m_terms; p++) { m_term[p].and_mask = 0; m_term[p].or_mask = 0; } logerror("%s PLA parse error %d!\n", tag(), result); return result; } // parse it uint32_t fusenum = 0; for (int p = 0; p < m_terms; p++) { term *term = &m_term[p]; // AND mask term->and_mask = 0; for (int i = 0; i < m_inputs; i++) { // complement term->and_mask |= (uint64_t)jed_get_fuse(&jed, fusenum++) << (i + 32); // true term->and_mask |= (uint64_t)jed_get_fuse(&jed, fusenum++) << i; } // OR mask term->or_mask = 0; for (int f = 0; f < m_outputs; f++) { term->or_mask |= !jed_get_fuse(&jed, fusenum++) << f; } term->or_mask <<= 32; LOGMASKED(LOG_TERMS, "F |= %0*X if (I & %0*X) == zeroes and (I & %0*X) == ones [term %d%s]\n", (m_outputs + 3) / 4, term->or_mask >> 32, (m_inputs + 3) / 4, (term->and_mask ^ m_input_mask) >> 32, (m_inputs + 3) / 4, uint32_t(term->and_mask ^ m_input_mask), p, (~term->and_mask & (~term->and_mask >> 32) & m_input_mask) == 0 ? "" : ", ignored"); } // XOR mask m_xor = 0; for (int f = 0; f < m_outputs; f++) { m_xor |= jed_get_fuse(&jed, fusenum++) << f; } m_xor <<= 32; LOGMASKED(LOG_TERMS, "F ^= %0*X\n", (m_outputs + 3) / 4, m_xor >> 32); return result; } //------------------------------------------------- // read - //------------------------------------------------- uint32_t pla_device::read(uint32_t input) { // try the cache first if (input < m_cache_size) return m_cache[input]; for (auto cache2_entry : m_cache2) { if ((uint32_t)cache2_entry == input) { // cache2 hit return cache2_entry >> 32; } } // cache miss, process terms uint64_t inputs = ((~(uint64_t)input << 32) | input) & m_input_mask; uint64_t s = 0; for (int i = 0; i < m_terms; ++i) { term* term = &m_term[i]; if ((term->and_mask | inputs) == m_input_mask) { s |= term->or_mask; } } s ^= m_xor; // store output in cache2 m_cache2[m_cache2_ptr] = s | input; ++m_cache2_ptr &= (CACHE2_SIZE - 1); return s >> 32; }