diff options
Diffstat (limited to 'src/emu')
| -rw-r--r-- | src/emu/debug/debugcmd.cpp | 38 | ||||
| -rw-r--r-- | src/emu/debug/debugcmd.h | 6 | ||||
| -rw-r--r-- | src/emu/debug/debugcon.h | 8 | ||||
| -rw-r--r-- | src/emu/debug/debugcpu.cpp | 62 | ||||
| -rw-r--r-- | src/emu/debug/debugcpu.h | 39 | ||||
| -rw-r--r-- | src/emu/debug/debughlp.cpp | 2 | ||||
| -rw-r--r-- | src/emu/debugger.cpp | 2 | ||||
| -rw-r--r-- | src/emu/device.cpp | 12 | ||||
| -rw-r--r-- | src/emu/emumem.cpp | 18 | ||||
| -rw-r--r-- | src/emu/emumem.h | 6 | ||||
| -rw-r--r-- | src/emu/emuopts.h | 2 | ||||
| -rw-r--r-- | src/emu/hashfile.cpp | 4 | ||||
| -rw-r--r-- | src/emu/romload.cpp | 2 | ||||
| -rw-r--r-- | src/emu/screen.h | 76 |
14 files changed, 138 insertions, 139 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index 72865e06680..361f8f14fdf 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -94,8 +94,8 @@ UINT64 debugger_commands::cheat_read_extended(const cheat_system *cheatsys, addr debugger_commands::debugger_commands(running_machine& machine, debugger_cpu& cpu, debugger_console& console) : m_machine(machine) - , m_cpu(cpu) - , m_console(console) + , m_cpu(cpu) + , m_console(console) { m_global_array = auto_alloc_array_clear(m_machine, global_entry, MAX_GLOBALS); @@ -271,7 +271,7 @@ debugger_commands::debugger_commands(running_machine& machine, debugger_cpu& cpu /* set up the initial debugscript if specified */ const char* name = m_machine.options().debug_script(); if (name[0] != 0) - m_cpu.source_script(name); + m_cpu.source_script(name); m_cheat.cpu[0] = m_cheat.cpu[1] = 0; } @@ -683,7 +683,7 @@ void debugger_commands::execute_tracelog(int ref, int params, const char *param[ /* then do a printf */ char buffer[1024]; if (mini_printf(buffer, param[0], params - 1, &values[1])) - m_cpu.get_visible_cpu()->debug()->trace_printf("%s", buffer); + m_cpu.get_visible_cpu()->debug()->trace_printf("%s", buffer); } @@ -720,7 +720,7 @@ void debugger_commands::execute_step(int ref, int params, const char *param[]) if (!validate_number_parameter(param[0], &steps)) return; - m_cpu.get_visible_cpu()->debug()->single_step(steps); + m_cpu.get_visible_cpu()->debug()->single_step(steps); } @@ -735,7 +735,7 @@ void debugger_commands::execute_over(int ref, int params, const char *param[]) if (!validate_number_parameter(param[0], &steps)) return; - m_cpu.get_visible_cpu()->debug()->single_step_over(steps); + m_cpu.get_visible_cpu()->debug()->single_step_over(steps); } @@ -745,7 +745,7 @@ void debugger_commands::execute_over(int ref, int params, const char *param[]) void debugger_commands::execute_out(int ref, int params, const char *param[]) { - m_cpu.get_visible_cpu()->debug()->single_step_out(); + m_cpu.get_visible_cpu()->debug()->single_step_out(); } @@ -761,7 +761,7 @@ void debugger_commands::execute_go(int ref, int params, const char *param[]) if (!validate_number_parameter(param[0], &addr)) return; - m_cpu.get_visible_cpu()->debug()->go(addr); + m_cpu.get_visible_cpu()->debug()->go(addr); } @@ -772,7 +772,7 @@ void debugger_commands::execute_go(int ref, int params, const char *param[]) void debugger_commands::execute_go_vblank(int ref, int params, const char *param[]) { - m_cpu.get_visible_cpu()->debug()->go_vblank(); + m_cpu.get_visible_cpu()->debug()->go_vblank(); } @@ -788,7 +788,7 @@ void debugger_commands::execute_go_interrupt(int ref, int params, const char *pa if (!validate_number_parameter(param[0], &irqline)) return; - m_cpu.get_visible_cpu()->debug()->go_interrupt(irqline); + m_cpu.get_visible_cpu()->debug()->go_interrupt(irqline); } @@ -804,7 +804,7 @@ void debugger_commands::execute_go_time(int ref, int params, const char *param[] if (!validate_number_parameter(param[0], &milliseconds)) return; - m_cpu.get_visible_cpu()->debug()->go_milliseconds(milliseconds); + m_cpu.get_visible_cpu()->debug()->go_milliseconds(milliseconds); } @@ -814,7 +814,7 @@ void debugger_commands::execute_go_time(int ref, int params, const char *param[] void debugger_commands::execute_next(int ref, int params, const char *param[]) { - m_cpu.get_visible_cpu()->debug()->go_next_device(); + m_cpu.get_visible_cpu()->debug()->go_next_device(); } @@ -1008,8 +1008,8 @@ void debugger_commands::execute_comment_del(int ref, int params, const char *par /** * @fn void execute_comment_list(running_machine &machine, int ref, int params, const char *param[]) * @brief Print current list of comments in debugger - * - * + * + * */ void debugger_commands::execute_comment_list(int ref, int params, const char *param[]) @@ -1029,7 +1029,7 @@ void debugger_commands::execute_comment_commit(int ref, int params, const char * execute_comment_add(ref, params, param); execute_comment_save(ref, params, param); } - + /*------------------------------------------------- execute_comment - add a comment to a line -------------------------------------------------*/ @@ -1053,7 +1053,7 @@ void debugger_commands::execute_comment_save(int ref, int params, const char *pa * @todo add shorthand for color modify and save * */ - + /*------------------------------------------------- @@ -1651,7 +1651,7 @@ void debugger_commands::execute_load(int ref, int params, const char *param[]) /* check if end of file has been reached and stop loading if it has */ if (feof(f)) break; - m_cpu.write_byte(*space, i, byte, true); + m_cpu.write_byte(*space, i, byte, true); } /* close the file */ fclose(f); @@ -2513,7 +2513,7 @@ void debugger_commands::execute_traceover(int ref, int params, const char *param void debugger_commands::execute_traceflush(int ref, int params, const char *param[]) { - m_cpu.flush_traces(); + m_cpu.flush_traces(); } @@ -2733,7 +2733,7 @@ void debugger_commands::execute_snap(int ref, int params, const char *param[]) void debugger_commands::execute_source(int ref, int params, const char *param[]) { - m_cpu.source_script(param[0]); + m_cpu.source_script(param[0]); } diff --git a/src/emu/debug/debugcmd.h b/src/emu/debug/debugcmd.h index b771aa84174..7ecfc87958b 100644 --- a/src/emu/debug/debugcmd.h +++ b/src/emu/debug/debugcmd.h @@ -157,9 +157,9 @@ private: void execute_input(int ref, int params, const char **param); void execute_dumpkbd(int ref, int params, const char **param); - running_machine& m_machine; - debugger_cpu& m_cpu; - debugger_console& m_console; + running_machine& m_machine; + debugger_cpu& m_cpu; + debugger_console& m_console; global_entry *m_global_array; cheat_system m_cheat; diff --git a/src/emu/debug/debugcon.h b/src/emu/debug/debugcon.h index 5e04d349454..e6e5145119a 100644 --- a/src/emu/debug/debugcon.h +++ b/src/emu/debug/debugcon.h @@ -124,12 +124,12 @@ private: int maxparams; }; - running_machine &m_machine; + running_machine &m_machine; - text_buffer *m_console_textbuf; - text_buffer *m_errorlog_textbuf; + text_buffer *m_console_textbuf; + text_buffer *m_errorlog_textbuf; - debug_command *m_commandlist; + debug_command *m_commandlist; }; #endif diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 021d745d0ec..1bc78847b6b 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -36,19 +36,19 @@ const size_t debugger_cpu::NUM_TEMP_VARIABLES = 10; debugger_cpu::debugger_cpu(running_machine &machine) : m_machine(machine) - , m_livecpu(nullptr) - , m_visiblecpu(nullptr) - , m_breakcpu(nullptr) - , m_source_file(nullptr) - , m_symtable(nullptr) - , m_execution_state(EXECUTION_STATE_STOPPED) - , m_bpindex(1) - , m_wpindex(1) - , m_rpindex(1) - , m_wpdata(0) - , m_wpaddr(0) + , m_livecpu(nullptr) + , m_visiblecpu(nullptr) + , m_breakcpu(nullptr) + , m_source_file(nullptr) + , m_symtable(nullptr) + , m_execution_state(EXECUTION_STATE_STOPPED) + , m_bpindex(1) + , m_wpindex(1) + , m_rpindex(1) + , m_wpdata(0) + , m_wpaddr(0) , m_last_periodic_update_time(0) - , m_comments_loaded(false) + , m_comments_loaded(false) { screen_device *first_screen = m_machine.first_screen(); @@ -327,7 +327,7 @@ bool debugger_cpu::comment_load(bool is_inline) { if(is_inline == false) m_machine.debugger().console().printf("@%s\n", cputag_name); - + if (!device->debug()->comment_import(*cpunode,is_inline)) throw emu_exception(); } @@ -392,11 +392,11 @@ UINT8 debugger_cpu::read_byte(address_space &space, offs_t address, int apply_tr result = 0xff; } else if (space.device().memory().read(space.spacenum(), address, 1, custom)) - { /* if there is a custom read handler, and it returns true, use that value */ + { /* if there is a custom read handler, and it returns true, use that value */ result = custom; } else - { /* otherwise, call the byte reading function for the translated address */ + { /* otherwise, call the byte reading function for the translated address */ result = space.read_byte(address); } @@ -419,7 +419,7 @@ UINT16 debugger_cpu::read_word(address_space &space, offs_t address, int apply_t UINT16 result; if (!WORD_ALIGNED(address)) - { /* if this is misaligned read, or if there are no word readers, just read two bytes */ + { /* if this is misaligned read, or if there are no word readers, just read two bytes */ UINT8 byte0 = read_byte(space, address + 0, apply_translation); UINT8 byte1 = read_byte(space, address + 1, apply_translation); @@ -430,7 +430,7 @@ UINT16 debugger_cpu::read_word(address_space &space, offs_t address, int apply_t result = byte1 | (byte0 << 8); } else - { /* otherwise, this proceeds like the byte case */ + { /* otherwise, this proceeds like the byte case */ /* all accesses from this point on are for the debugger */ m_debugger_access = true; @@ -443,11 +443,11 @@ UINT16 debugger_cpu::read_word(address_space &space, offs_t address, int apply_t result = 0xffff; } else if (space.device().memory().read(space.spacenum(), address, 2, custom)) - { /* if there is a custom read handler, and it returns true, use that value */ + { /* if there is a custom read handler, and it returns true, use that value */ result = custom; } else - { /* otherwise, call the byte reading function for the translated address */ + { /* otherwise, call the byte reading function for the translated address */ result = space.read_word(address); } @@ -472,7 +472,7 @@ UINT32 debugger_cpu::read_dword(address_space &space, offs_t address, int apply_ UINT32 result; if (!DWORD_ALIGNED(address)) - { /* if this is a misaligned read, or if there are no dword readers, just read two words */ + { /* if this is a misaligned read, or if there are no dword readers, just read two words */ UINT16 word0 = read_word(space, address + 0, apply_translation); UINT16 word1 = read_word(space, address + 2, apply_translation); @@ -483,7 +483,7 @@ UINT32 debugger_cpu::read_dword(address_space &space, offs_t address, int apply_ result = word1 | (word0 << 16); } else - { /* otherwise, this proceeds like the byte case */ + { /* otherwise, this proceeds like the byte case */ /* all accesses from this point on are for the debugger */ m_debugger_access = true; @@ -491,15 +491,15 @@ UINT32 debugger_cpu::read_dword(address_space &space, offs_t address, int apply_ UINT64 custom; if (apply_translation && !translate(space, TRANSLATE_READ_DEBUG, &address)) - { /* translate if necessary; if not mapped, return 0xffffffff */ + { /* translate if necessary; if not mapped, return 0xffffffff */ result = 0xffffffff; } else if (space.device().memory().read(space.spacenum(), address, 4, custom)) - { /* if there is a custom read handler, and it returns true, use that value */ + { /* if there is a custom read handler, and it returns true, use that value */ result = custom; } else - { /* otherwise, call the byte reading function for the translated address */ + { /* otherwise, call the byte reading function for the translated address */ result = space.read_dword(address); } @@ -524,7 +524,7 @@ UINT64 debugger_cpu::read_qword(address_space &space, offs_t address, int apply_ UINT64 result; if (!QWORD_ALIGNED(address)) - { /* if this is a misaligned read, or if there are no qword readers, just read two dwords */ + { /* if this is a misaligned read, or if there are no qword readers, just read two dwords */ UINT32 dword0 = read_dword(space, address + 0, apply_translation); UINT32 dword1 = read_dword(space, address + 4, apply_translation); @@ -535,7 +535,7 @@ UINT64 debugger_cpu::read_qword(address_space &space, offs_t address, int apply_ result = dword1 | ((UINT64)dword0 << 32); } else - { /* otherwise, this proceeds like the byte case */ + { /* otherwise, this proceeds like the byte case */ /* all accesses from this point on are for the debugger */ m_debugger_access = true; @@ -548,11 +548,11 @@ UINT64 debugger_cpu::read_qword(address_space &space, offs_t address, int apply_ result = ~(UINT64)0; } else if (space.device().memory().read(space.spacenum(), address, 8, custom)) - { /* if there is a custom read handler, and it returns true, use that value */ + { /* if there is a custom read handler, and it returns true, use that value */ result = custom; } else - { /* otherwise, call the byte reading function for the translated address */ + { /* otherwise, call the byte reading function for the translated address */ result = space.read_qword(address); } @@ -1528,13 +1528,13 @@ void debugger_cpu::start_hook(device_t *device, bool stop_on_vblank) if (m_execution_state != EXECUTION_STATE_STOPPED) { if (device == m_visiblecpu && osd_ticks() > m_last_periodic_update_time + osd_ticks_per_second() / 4) - { // check for periodic updates + { // check for periodic updates m_machine.debug_view().update_all(); m_machine.debug_view().flush_osd_updates(); m_last_periodic_update_time = osd_ticks(); } else if (device == m_breakcpu) - { // check for pending breaks + { // check for pending breaks m_execution_state = EXECUTION_STATE_STOPPED; m_breakcpu = nullptr; } @@ -2613,7 +2613,7 @@ bool device_debug::comment_export(xml_data_node &curnode) //------------------------------------------------- bool device_debug::comment_import(xml_data_node &cpunode,bool is_inline) -{ +{ // iterate through nodes for (xml_data_node *datanode = xml_get_sibling(cpunode.child, "comment"); datanode; datanode = xml_get_sibling(datanode->next, "comment")) { diff --git a/src/emu/debug/debugcpu.h b/src/emu/debug/debugcpu.h index 757fc57649a..7dfebf0cb76 100644 --- a/src/emu/debug/debugcpu.h +++ b/src/emu/debug/debugcpu.h @@ -603,36 +603,35 @@ private: /* internal helpers */ void on_vblank(screen_device &device, bool vblank_state); - running_machine& m_machine; + running_machine& m_machine; - device_t * m_livecpu; - device_t * m_visiblecpu; - device_t * m_breakcpu; + device_t * m_livecpu; + device_t * m_visiblecpu; + device_t * m_breakcpu; - FILE * m_source_file; // script source file + FILE * m_source_file; // script source file - std::unique_ptr<symbol_table> m_symtable; // global symbol table + std::unique_ptr<symbol_table> m_symtable; // global symbol table - bool m_within_instruction_hook; - bool m_vblank_occurred; - bool m_memory_modified; - bool m_debugger_access; + bool m_within_instruction_hook; + bool m_vblank_occurred; + bool m_memory_modified; + bool m_debugger_access; - int m_execution_state; - device_t * m_stop_when_not_device; // stop execution when the device ceases to be this + int m_execution_state; + device_t * m_stop_when_not_device; // stop execution when the device ceases to be this - UINT32 m_bpindex; - UINT32 m_wpindex; - UINT32 m_rpindex; + UINT32 m_bpindex; + UINT32 m_wpindex; + UINT32 m_rpindex; - UINT64 m_wpdata; - UINT64 m_wpaddr; + UINT64 m_wpdata; + UINT64 m_wpaddr; std::unique_ptr<UINT64[]> m_tempvar; - osd_ticks_t m_last_periodic_update_time; + osd_ticks_t m_last_periodic_update_time; - bool m_comments_loaded; + bool m_comments_loaded; }; #endif - diff --git a/src/emu/debug/debughlp.cpp b/src/emu/debug/debughlp.cpp index d397c726f15..8d66f59d85a 100644 --- a/src/emu/debug/debughlp.cpp +++ b/src/emu/debug/debughlp.cpp @@ -1258,7 +1258,7 @@ static const help_item static_help_list[] = "\n" " commit[/*] <address>,<comment>\n" "\n" - "Adds a string <comment> to the disassembled code at <address> then saves to file. Basically same as comadd + comsave via a single line.\n" + "Adds a string <comment> to the disassembled code at <address> then saves to file. Basically same as comadd + comsave via a single line.\n" "The shortcut for this command is simply '/*'\n" "\n" "Examples:\n" diff --git a/src/emu/debugger.cpp b/src/emu/debugger.cpp index 52031ff7753..b2e5bfd3fd6 100644 --- a/src/emu/debugger.cpp +++ b/src/emu/debugger.cpp @@ -125,7 +125,7 @@ debugger_manager::debugger_manager(running_machine &machine) /* initialize the submodules */ m_cpu = std::make_unique<debugger_cpu>(machine); m_console = std::make_unique<debugger_console>(machine); - m_commands = std::make_unique<debugger_commands>(machine, cpu(), console()); + m_commands = std::make_unique<debugger_commands>(machine, cpu(), console()); g_machine = &machine; diff --git a/src/emu/device.cpp b/src/emu/device.cpp index b2a2e3e325d..2ca2db31e36 100644 --- a/src/emu/device.cpp +++ b/src/emu/device.cpp @@ -77,13 +77,13 @@ memory_region *device_t::memregion(const char *_tag) const if (_tag) { auto search = machine().memory().regions().find(subtag(_tag).c_str()); - if (search != machine().memory().regions().end()) - return search->second.get(); - else + if (search != machine().memory().regions().end()) + return search->second.get(); + else return nullptr; - } + } else - return nullptr; + return nullptr; } @@ -104,7 +104,7 @@ memory_share *device_t::memshare(const char *_tag) const return nullptr; } else - return nullptr; + return nullptr; } diff --git a/src/emu/emumem.cpp b/src/emu/emumem.cpp index 0b4e66a12ec..243adbc3aea 100644 --- a/src/emu/emumem.cpp +++ b/src/emu/emumem.cpp @@ -1766,14 +1766,14 @@ void address_space::allocate(std::vector<std::unique_ptr<address_space>> &space_ case 8: if (config.endianness() == ENDIANNESS_LITTLE) { - if (large) + if (large) space_list.push_back(std::make_unique<address_space_8le_large>(manager, memory, spacenum)); else space_list.push_back(std::make_unique<address_space_8le_small>(manager, memory, spacenum)); } else { - if (large) + if (large) space_list.push_back(std::make_unique<address_space_8be_large>(manager, memory, spacenum)); else space_list.push_back(std::make_unique<address_space_8be_small>(manager, memory, spacenum)); @@ -1783,7 +1783,7 @@ void address_space::allocate(std::vector<std::unique_ptr<address_space>> &space_ case 16: if (config.endianness() == ENDIANNESS_LITTLE) { - if (large) + if (large) space_list.push_back(std::make_unique<address_space_16le_large>(manager, memory, spacenum)); else space_list.push_back(std::make_unique<address_space_16le_small>(manager, memory, spacenum)); @@ -1832,7 +1832,7 @@ void address_space::allocate(std::vector<std::unique_ptr<address_space>> &space_ break; default: throw emu_fatalerror("Invalid width %d specified for address_space::allocate", config.data_width()); - } + } } @@ -2208,7 +2208,7 @@ void address_space::allocate_memory() // loop over all blocks just allocated and assign pointers from them address_map_entry *unassigned = nullptr; - + for (auto memblock = blocklist.begin() + tail; memblock != blocklist.end(); ++memblock) unassigned = block_assign_intersecting(memblock->get()->bytestart(), memblock->get()->byteend(), memblock->get()->data()); @@ -2252,7 +2252,7 @@ void address_space::allocate_memory() offs_t curbytestart = curblockstart * MEMORY_BLOCK_CHUNK; offs_t curbyteend = curblockend * MEMORY_BLOCK_CHUNK + (MEMORY_BLOCK_CHUNK - 1); auto block = std::make_unique<memory_block>(*this, curbytestart, curbyteend); - + // assign memory that intersected the new block unassigned = block_assign_intersecting(curbytestart, curbyteend, block.get()->data()); blocklist.push_back(std::move(block)); @@ -2577,7 +2577,7 @@ void address_space::install_ram_generic(offs_t addrstart, offs_t addrend, offs_t { if (machine().phase() >= MACHINE_PHASE_RESET) fatalerror("Attempted to call install_ram_generic() after initialization time without a baseptr!\n"); - auto block = std::make_unique<memory_block>(*this, address_to_byte(addrstart), address_to_byte_end(addrend)); + auto block = std::make_unique<memory_block>(*this, address_to_byte(addrstart), address_to_byte_end(addrend)); bank.set_base(block.get()->data()); manager().m_blocklist.push_back(std::move(block)); } @@ -4262,7 +4262,7 @@ void memory_bank::configure_entries(int startentry, int numentries, void *base, //------------------------------------------------- memory_region::memory_region(running_machine &machine, const char *name, UINT32 length, UINT8 width, endianness_t endian) - : m_machine(machine), + : m_machine(machine), m_name(name), m_buffer(length), m_endianness(endian), @@ -4474,7 +4474,7 @@ void handler_entry::description(char *buffer) const m_subunit_infos[i].m_shift, m_subunit_infos[i].m_offset, m_subunit_infos[i].m_multiplier, - m_subunit_infos[i].m_bytemask, + m_subunit_infos[i].m_bytemask, subunit_name(i)); } } diff --git a/src/emu/emumem.h b/src/emu/emumem.h index cf517d84236..f44e34f8060 100644 --- a/src/emu/emumem.h +++ b/src/emu/emumem.h @@ -148,9 +148,9 @@ public: public: // construction direct_range(): m_bytestart(0),m_byteend(~0) { } - + inline bool operator==(direct_range val) noexcept - { // return true if _Left and _Right identify the same thread + { // return true if _Left and _Right identify the same thread return (m_bytestart == val.m_bytestart) && (m_byteend == val.m_byteend); } @@ -521,7 +521,7 @@ class memory_bank // construction/destruction bank_reference(address_space &space, read_or_write readorwrite) : m_space(space), - m_readorwrite(readorwrite) { } + m_readorwrite(readorwrite) { } // getters address_space &space() const { return m_space; } diff --git a/src/emu/emuopts.h b/src/emu/emuopts.h index e3ae4bda6d8..1e7829690c0 100644 --- a/src/emu/emuopts.h +++ b/src/emu/emuopts.h @@ -198,7 +198,7 @@ public: UI_CABINET, UI_SIMPLE }; - + // construction/destruction emu_options(); diff --git a/src/emu/hashfile.cpp b/src/emu/hashfile.cpp index 1d3a2b63171..95341347b97 100644 --- a/src/emu/hashfile.cpp +++ b/src/emu/hashfile.cpp @@ -32,7 +32,7 @@ bool read_hash_config(device_image_interface &image, const char *sysname, std::s pugi::xml_document doc; pugi::xml_parse_result res = doc.load_file(file.fullpath()); - if (res) + if (res) { // Do search by CRC32 and SHA1 std::string query = "/hashfile/hash["; @@ -46,7 +46,7 @@ bool read_hash_config(device_image_interface &image, const char *sysname, std::s return true; } - // Try search by CRC32 only + // Try search by CRC32 only query = "/hashfile/hash["; query += "@crc32='" + crc + "']/extrainfo"; tools = doc.select_nodes(query.c_str()); diff --git a/src/emu/romload.cpp b/src/emu/romload.cpp index e158f7ea304..5d832fd2022 100644 --- a/src/emu/romload.cpp +++ b/src/emu/romload.cpp @@ -811,7 +811,7 @@ void rom_load_manager::fill_rom_data(const rom_entry *romp) /* make sure the length was valid */ if (numbytes == 0) fatalerror("Error in RomModule definition: FILL has an invalid length\n"); - + /* fill the data (filling value is stored in place of the hashdata) */ if(skip != 0) { diff --git a/src/emu/screen.h b/src/emu/screen.h index 8a969c5e9b8..4c0d9081a48 100644 --- a/src/emu/screen.h +++ b/src/emu/screen.h @@ -54,21 +54,21 @@ const UINT32 UPDATE_HAS_NOT_CHANGED = 0x0001; // the video has not changed @def VIDEO_UPDATE_BEFORE_VBLANK update_video called at the start of the VBLANK period @todo hack, remove me - + @def VIDEO_UPDATE_AFTER_VBLANK update_video called at the end of the VBLANK period @todo hack, remove me @def VIDEO_SELF_RENDER indicates VIDEO_UPDATE will add container bits itself - + @def VIDEO_ALWAYS_UPDATE force VIDEO_UPDATE to be called even for skipped frames. @todo in case you need this one for model updating, then you're doing it wrong (read: hack) - + @def VIDEO_UPDATE_SCANLINE calls VIDEO_UPDATE for every visible scanline, even for skipped frames - + @} */ @@ -377,82 +377,82 @@ typedef device_type_iterator<&device_creator<screen_device>, screen_device> scre @{ @def MCFG_SCREEN_ADD Add a new legacy screen color device - + @def MCFG_SCREEN_ADD_MONOCHROME Add a new legacy monochrome screen device - + @def MCFG_SCREEN_MODIFY Modify a legacy screen device - + @def MCFG_SCREEN_TYPE Modify the screen device type @see screen_type_enum - + @def MCFG_SCREEN_RAW_PARAMS - Configures screen parameters for the given screen. + Configures screen parameters for the given screen. @remark It's better than using @see MCFG_SCREEN_REFRESH_RATE and @see MCFG_SCREEN_VBLANK_TIME but still not enough. - - @param _pixclock + + @param _pixclock Pixel Clock frequency value - - @param _htotal + + @param _htotal Total number of horizontal pixels, including hblank period. - - @param _hbend + + @param _hbend Horizontal pixel position for HBlank end event, also first pixel where screen rectangle is visible. - - @param _hbstart + + @param _hbstart Horizontal pixel position for HBlank start event, also last pixel where screen rectangle is visible. - - @param _vtotal + + @param _vtotal Total number of vertical pixels, including vblank period. - - @param _vbend + + @param _vbend Vertical pixel position for VBlank end event, also first pixel where screen rectangle is visible. - - @param _vbstart + + @param _vbstart Vertical pixel position for VBlank start event, also last pixel where screen rectangle is visible. - + @def MCFG_SCREEN_REFRESH_RATE Sets the number of Frames Per Second for this screen @remarks Please use @see MCFG_SCREEN_RAW_PARAMS instead. Gives imprecise timings. - @param _rate + @param _rate FPS number @def MCFG_SCREEN_VBLANK_TIME Sets the vblank time of the given screen @remarks Please use @see MCFG_SCREEN_RAW_PARAMS instead. Gives imprecise timings. - - @param _time + + @param _time Time parameter, in attotime value @def MCFG_SCREEN_SIZE Sets total screen size, including H/V-Blanks @remarks Please use @see MCFG_SCREEN_RAW_PARAMS instead. Gives imprecise timings. - - @param _width + + @param _width Screen horizontal size @param _height Screen vertical size - + @def MCFG_SCREEN_VISIBLE_AREA Sets screen visible area @remarks Please use MCFG_SCREEN_RAW_PARAMS instead. Gives imprecise timings. - @param _minx + @param _minx Screen left border - - @param _maxx + + @param _maxx Screen right border, must be in N-1 format - - @param _miny + + @param _miny Screen top border - - @param _maxx + + @param _maxx Screen bottom border, must be in N-1 format - + @} */ |
