summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2025-01-22 20:42:43 +0100
committer hap <happppp@users.noreply.github.com>2025-01-22 20:42:43 +0100
commit252941fe51615918da2388afdd19ad11ddd50001 (patch)
treec6159dc0030f2f3c0f4236af32d91b1467e25529
parent21f51069555f1283e0cfca90e4f2b0f644081d32 (diff)
misc: remove "all rights reserved" copyright comment,
mcs51: remove old changelog from comments, remove copypasted comment block
-rw-r--r--src/devices/cpu/arm7/arm7.cpp4
-rw-r--r--src/devices/cpu/arm7/arm7.h2
-rw-r--r--src/devices/cpu/arm7/arm7core.h2
-rw-r--r--src/devices/cpu/arm7/arm7core.hxx4
-rw-r--r--src/devices/cpu/arm7/arm7dasm.cpp4
-rw-r--r--src/devices/cpu/arm7/arm7dasm.h4
-rw-r--r--src/devices/cpu/arm7/arm7drc.hxx4
-rw-r--r--src/devices/cpu/arm7/arm7fe.hxx2
-rw-r--r--src/devices/cpu/cp1610/cp1610.cpp2
-rw-r--r--src/devices/cpu/cp1610/cp1610.h2
-rw-r--r--src/devices/cpu/g65816/g65816.cpp1
-rw-r--r--src/devices/cpu/g65816/g65816.h1
-rw-r--r--src/devices/cpu/g65816/g65816ds.cpp1
-rw-r--r--src/devices/cpu/g65816/g65816ds.h1
-rw-r--r--src/devices/cpu/i8085/i8085.cpp2
-rw-r--r--src/devices/cpu/m37710/m7700ds.h1
-rw-r--r--src/devices/cpu/m68000/m68kcpu.cpp2
-rw-r--r--src/devices/cpu/m68000/m68kcpu.h2
-rw-r--r--src/devices/cpu/m68000/m68kdasm.cpp2
-rw-r--r--src/devices/cpu/m68000/m68kdasm.h2
-rw-r--r--src/devices/cpu/mcs51/mcs51.cpp201
-rw-r--r--src/devices/cpu/mcs51/mcs51.h24
-rw-r--r--src/devices/cpu/mcs51/mcs51dasm.cpp39
-rw-r--r--src/devices/cpu/mcs51/mcs51dasm.h20
-rw-r--r--src/devices/cpu/sc61860/sc61860.cpp2
-rw-r--r--src/devices/cpu/sc61860/sc61860.h2
-rw-r--r--src/devices/cpu/sc61860/scdasm.cpp2
-rw-r--r--src/devices/cpu/sc61860/scdasm.h2
-rw-r--r--src/devices/cpu/sc61860/scops.hxx2
-rw-r--r--src/devices/cpu/scudsp/scudsp.cpp2
-rw-r--r--src/devices/cpu/spc700/spc700ds.cpp1
-rw-r--r--src/devices/cpu/spc700/spc700ds.h2
-rw-r--r--src/mame/layout/cxg_pchess.lay1
-rw-r--r--src/mame/sega/fd1089.cpp2
-rw-r--r--src/mame/sega/fd1089.h2
-rw-r--r--src/mame/sega/fd1094.cpp2
-rw-r--r--src/mame/sega/fd1094.h2
-rw-r--r--src/mame/sharp/pc1403.cpp2
-rw-r--r--src/mame/universal/cheekyms.cpp3
-rw-r--r--src/osd/modules/render/bgfx/shaders/shader.mk2
40 files changed, 133 insertions, 227 deletions
diff --git a/src/devices/cpu/arm7/arm7.cpp b/src/devices/cpu/arm7/arm7.cpp
index 4e9c74a6861..6fb610fe90f 100644
--- a/src/devices/cpu/arm7/arm7.cpp
+++ b/src/devices/cpu/arm7/arm7.cpp
@@ -2,10 +2,10 @@
// copyright-holders:Steve Ellenoff,R. Belmont,Ryan Holtz
/*****************************************************************************
*
- * arm7.c
+ * arm7.cpp
* Portable CPU Emulator for 32-bit ARM v3/4/5/6
*
- * Copyright Steve Ellenoff, all rights reserved.
+ * Copyright Steve Ellenoff
* Thumb, DSP, and MMU support and many bugfixes by R. Belmont and Ryan Holtz.
*
* This work is based on:
diff --git a/src/devices/cpu/arm7/arm7.h b/src/devices/cpu/arm7/arm7.h
index ad59176f680..b49d77bbe58 100644
--- a/src/devices/cpu/arm7/arm7.h
+++ b/src/devices/cpu/arm7/arm7.h
@@ -5,7 +5,7 @@
* arm7.h
* Portable ARM7TDMI CPU Emulator
*
- * Copyright Steve Ellenoff, all rights reserved.
+ * Copyright Steve Ellenoff
*
* This work is based on:
* #1) 'Atmel Corporation ARM7TDMI (Thumb) Datasheet - January 1999'
diff --git a/src/devices/cpu/arm7/arm7core.h b/src/devices/cpu/arm7/arm7core.h
index 88963ae0af4..d792260490f 100644
--- a/src/devices/cpu/arm7/arm7core.h
+++ b/src/devices/cpu/arm7/arm7core.h
@@ -5,7 +5,7 @@
* arm7core.h
* Portable ARM7TDMI Core Emulator
*
- * Copyright Steve Ellenoff, all rights reserved.
+ * Copyright Steve Ellenoff
*
* This work is based on:
* #1) 'Atmel Corporation ARM7TDMI (Thumb) Datasheet - January 1999'
diff --git a/src/devices/cpu/arm7/arm7core.hxx b/src/devices/cpu/arm7/arm7core.hxx
index 72abb281918..636019caa59 100644
--- a/src/devices/cpu/arm7/arm7core.hxx
+++ b/src/devices/cpu/arm7/arm7core.hxx
@@ -2,10 +2,10 @@
// copyright-holders:Steve Ellenoff,R. Belmont,Ryan Holtz
/*****************************************************************************
*
- * arm7core.inc
+ * arm7core.hxx
* Portable ARM7TDMI Core Emulator
*
- * Copyright Steve Ellenoff, all rights reserved.
+ * Copyright Steve Ellenoff
*
* This work is based on:
* #1) 'Atmel Corporation ARM7TDMI (Thumb) Datasheet - January 1999'
diff --git a/src/devices/cpu/arm7/arm7dasm.cpp b/src/devices/cpu/arm7/arm7dasm.cpp
index be552b90f2b..f597c5a58d3 100644
--- a/src/devices/cpu/arm7/arm7dasm.cpp
+++ b/src/devices/cpu/arm7/arm7dasm.cpp
@@ -2,10 +2,10 @@
// copyright-holders:Steve Ellenoff,R. Belmont,Ryan Holtz
/*****************************************************************************
*
- * arm7dasm.c
+ * arm7dasm.cpp
* Portable ARM7TDMI Core Emulator - Disassembler
*
- * Copyright Steve Ellenoff, all rights reserved.
+ * Copyright Steve Ellenoff
*
* This work is based on:
* #1) 'Atmel Corporation ARM7TDMI (Thumb) Datasheet - January 1999'
diff --git a/src/devices/cpu/arm7/arm7dasm.h b/src/devices/cpu/arm7/arm7dasm.h
index 1e0d27ca754..3c9514482bd 100644
--- a/src/devices/cpu/arm7/arm7dasm.h
+++ b/src/devices/cpu/arm7/arm7dasm.h
@@ -2,10 +2,10 @@
// copyright-holders:Steve Ellenoff,R. Belmont,Ryan Holtz
/*****************************************************************************
*
- * arm7dasm.c
+ * arm7dasm.h
* Portable ARM7TDMI Core Emulator - Disassembler
*
- * Copyright Steve Ellenoff, all rights reserved.
+ * Copyright Steve Ellenoff
*
* This work is based on:
* #1) 'Atmel Corporation ARM7TDMI (Thumb) Datasheet - January 1999'
diff --git a/src/devices/cpu/arm7/arm7drc.hxx b/src/devices/cpu/arm7/arm7drc.hxx
index 8264ce5a764..02d596b6e5a 100644
--- a/src/devices/cpu/arm7/arm7drc.hxx
+++ b/src/devices/cpu/arm7/arm7drc.hxx
@@ -2,10 +2,10 @@
// copyright-holders:Steve Ellenoff,R. Belmont,Ryan Holtz
/*****************************************************************************
*
- * arm7drc.inc
+ * arm7drc.hxx
* Portable CPU Emulator for 32-bit ARM v3/4/5/6
*
- * Copyright Steve Ellenoff, all rights reserved.
+ * Copyright Steve Ellenoff
* Thumb, DSP, and MMU support and many bugfixes by R. Belmont and Ryan Holtz.
* Dyanmic Recompiler (DRC) / Just In Time Compiler (JIT) by Ryan Holtz.
*
diff --git a/src/devices/cpu/arm7/arm7fe.hxx b/src/devices/cpu/arm7/arm7fe.hxx
index 9fcb97776aa..9cefd6f0f81 100644
--- a/src/devices/cpu/arm7/arm7fe.hxx
+++ b/src/devices/cpu/arm7/arm7fe.hxx
@@ -2,7 +2,7 @@
// copyright-holders:Ryan Holtz
/***************************************************************************
- arm7fe.c
+ arm7fe.hxx
Front-end for ARM7 DRC
diff --git a/src/devices/cpu/cp1610/cp1610.cpp b/src/devices/cpu/cp1610/cp1610.cpp
index 4746fc18cd2..5b46a84ca63 100644
--- a/src/devices/cpu/cp1610/cp1610.cpp
+++ b/src/devices/cpu/cp1610/cp1610.cpp
@@ -5,7 +5,7 @@
* cp1610.c
* Portable CP1610 emulator (General Instrument CP1610)
*
- * Copyright Frank Palazzolo, all rights reserved.
+ * Copyright Frank Palazzolo
*
* This work is based on Juergen Buchmueller's F8 emulation,
* and the 'General Instruments CP1610' data sheets.
diff --git a/src/devices/cpu/cp1610/cp1610.h b/src/devices/cpu/cp1610/cp1610.h
index 37d9d2093bc..22dc92d9197 100644
--- a/src/devices/cpu/cp1610/cp1610.h
+++ b/src/devices/cpu/cp1610/cp1610.h
@@ -5,7 +5,7 @@
* cp1610.h
* Portable General Instruments CP1610 emulator interface
*
- * Copyright Frank Palazzolo, all rights reserved.
+ * Copyright Frank Palazzolo
*
*****************************************************************************/
diff --git a/src/devices/cpu/g65816/g65816.cpp b/src/devices/cpu/g65816/g65816.cpp
index cede980dc57..e6031da603d 100644
--- a/src/devices/cpu/g65816/g65816.cpp
+++ b/src/devices/cpu/g65816/g65816.cpp
@@ -8,7 +8,6 @@
G65C816 CPU Emulator V1.00
Copyright Karl Stenerud
-All rights reserved.
*/
/* ======================================================================== */
diff --git a/src/devices/cpu/g65816/g65816.h b/src/devices/cpu/g65816/g65816.h
index 246b12a9380..89924d76751 100644
--- a/src/devices/cpu/g65816/g65816.h
+++ b/src/devices/cpu/g65816/g65816.h
@@ -15,7 +15,6 @@
G65C816 CPU Emulator V0.92
Copyright Karl Stenerud
-All rights reserved.
*/
/* ======================================================================== */
diff --git a/src/devices/cpu/g65816/g65816ds.cpp b/src/devices/cpu/g65816/g65816ds.cpp
index 4bce62f621b..a3d350b9730 100644
--- a/src/devices/cpu/g65816/g65816ds.cpp
+++ b/src/devices/cpu/g65816/g65816ds.cpp
@@ -8,7 +8,6 @@
G65C816 CPU Emulator V0.90
Copyright Karl Stenerud
-All rights reserved.
*/
diff --git a/src/devices/cpu/g65816/g65816ds.h b/src/devices/cpu/g65816/g65816ds.h
index cb6eee661dc..11ba4b04b2a 100644
--- a/src/devices/cpu/g65816/g65816ds.h
+++ b/src/devices/cpu/g65816/g65816ds.h
@@ -13,7 +13,6 @@
G65C816 CPU Emulator V0.92
Copyright Karl Stenerud
-All rights reserved.
*/
diff --git a/src/devices/cpu/i8085/i8085.cpp b/src/devices/cpu/i8085/i8085.cpp
index 627a93cfcd0..ac26c2ecabe 100644
--- a/src/devices/cpu/i8085/i8085.cpp
+++ b/src/devices/cpu/i8085/i8085.cpp
@@ -5,7 +5,7 @@
*
* Portable I8085A emulator V1.3
*
- * Copyright Juergen Buchmueller, all rights reserved.
+ * Copyright Juergen Buchmueller
* Partially based on information out of Z80Em by Marcel De Kogel
*
* TODO:
diff --git a/src/devices/cpu/m37710/m7700ds.h b/src/devices/cpu/m37710/m7700ds.h
index f2c628212f3..5495a508323 100644
--- a/src/devices/cpu/m37710/m7700ds.h
+++ b/src/devices/cpu/m37710/m7700ds.h
@@ -18,7 +18,6 @@ Based on:
G65C816 CPU Emulator V0.92
Copyright Karl Stenerud
-All rights reserved.
*/
diff --git a/src/devices/cpu/m68000/m68kcpu.cpp b/src/devices/cpu/m68000/m68kcpu.cpp
index c3f29233ac6..19d1063e026 100644
--- a/src/devices/cpu/m68000/m68kcpu.cpp
+++ b/src/devices/cpu/m68000/m68kcpu.cpp
@@ -9,7 +9,7 @@ static const char copyright_notice[] =
"MUSASHI\n"
"Version 4.95 (2012-02-19)\n"
"A portable Motorola M68xxx/CPU32/ColdFire processor emulation engine.\n"
-"Copyright Karl Stenerud. All rights reserved.\n"
+"Copyright Karl Stenerud.\n"
;
#endif
diff --git a/src/devices/cpu/m68000/m68kcpu.h b/src/devices/cpu/m68000/m68kcpu.h
index 620fe5dae96..73ed3fd237d 100644
--- a/src/devices/cpu/m68000/m68kcpu.h
+++ b/src/devices/cpu/m68000/m68kcpu.h
@@ -8,7 +8,7 @@
* Version 4.50
*
* A portable Motorola M680x0 processor emulation engine.
- * Copyright Karl Stenerud. All rights reserved.
+ * Copyright Karl Stenerud
*
*/
diff --git a/src/devices/cpu/m68000/m68kdasm.cpp b/src/devices/cpu/m68000/m68kdasm.cpp
index 9370720f24c..0e5d45e7a21 100644
--- a/src/devices/cpu/m68000/m68kdasm.cpp
+++ b/src/devices/cpu/m68000/m68kdasm.cpp
@@ -8,7 +8,7 @@
* Version 3.32
*
* A portable Motorola M680x0 processor emulation engine.
- * Copyright Karl Stenerud. All rights reserved.
+ * Copyright Karl Stenerud.
*
*/
diff --git a/src/devices/cpu/m68000/m68kdasm.h b/src/devices/cpu/m68000/m68kdasm.h
index 88022b9d15d..865af5d7c61 100644
--- a/src/devices/cpu/m68000/m68kdasm.h
+++ b/src/devices/cpu/m68000/m68kdasm.h
@@ -8,7 +8,7 @@
* Version 3.32
*
* A portable Motorola M680x0 processor emulation engine.
- * Copyright Karl Stenerud. All rights reserved.
+ * Copyright Karl Stenerud.
*
*/
diff --git a/src/devices/cpu/mcs51/mcs51.cpp b/src/devices/cpu/mcs51/mcs51.cpp
index 4f0bffd06fe..6064feb545e 100644
--- a/src/devices/cpu/mcs51/mcs51.cpp
+++ b/src/devices/cpu/mcs51/mcs51.cpp
@@ -2,95 +2,74 @@
// copyright-holders:Steve Ellenoff, Manuel Abadia, Couriersud
/*****************************************************************************
*
- * i8051.c
- * Portable MCS-51 Family Emulator
+ * Portable MCS-51 Family Emulator
+ * Copyright Steve Ellenoff
*
- * Chips in the family:
- * 8051 Product Line (8031,8051,8751)
- * 8052 Product Line (8032,8052,8752)
- * 8054 Product Line (8054)
- * 8058 Product Line (8058)
- * 80552 Product Line (80552, 83552, 87552)
- * 80562 Product Line (80562, 83562, 87562)
+ * Chips in the family:
+ * 8051 Product Line (8031,8051,8751)
+ * 8052 Product Line (8032,8052,8752)
+ * 8054 Product Line (8054)
+ * 8058 Product Line (8058)
+ * 80552 Product Line (80552, 83552, 87552)
+ * 80562 Product Line (80562, 83562, 87562)
*
- * Copyright Steve Ellenoff, all rights reserved.
- *
- * This work is based on:
- * #1) 'Intel(tm) MC51 Microcontroller Family Users Manual' and
- * #2) 8051 simulator by Travis Marlatte
- * #3) Portable UPI-41/8041/8741/8042/8742 emulator V0.1 by Juergen Buchmueller (MAME CORE)
+ * This work is based on:
+ * #1) 'Intel(tm) MC51 Microcontroller Family Users Manual' and
+ * #2) 8051 simulator by Travis Marlatte
+ * #3) Portable UPI-41/8041/8741/8042/8742 emulator V0.1 by Juergen Buchmueller (MAME CORE)
*
*****************************************************************************/
/*****************************************************************************
- * DS5002FP emulator by Manuel Abadia
- *
- * October 2008, couriersud: Merged back in mcs51
*
- * What has been added?
- * - Extra SFRs
- * - Bytewide Bus Support
- * - Memory Partition and Memory Range
- * - Bootstrap Configuration
- * - Power Fail Interrupt
- * - Timed Access
- * - Stop Mode
- * - Idle Mode
+ * DS5002FP emulator by Manuel Abadia
*
- * What is not implemented?
- * - Peripherals and Reprogrammable Peripheral Controller
- * - CRC-16
- * - Watchdog timer
+ * The main features of the DS5002FP are:
+ * - 100% code-compatible with 8051
+ * - Directly addresses 64kB program/64kB data memory
+ * - Nonvolatile memory control circuitry
+ * - 10-year data retention in the absence of power
+ * - In-system reprogramming via serial port
+ * - Dedicated memory bus, preserving four 8-bit ports for general purpose I/O
+ * - Power-fail reset
+ * - Early warning power-fail interrupt
+ * - Watchdog timer
+ * - Accesses up to 128kB on the bytewide bus
+ * - Decodes memory for 32kB x 8 or 128kB x 8 SRAMs
+ * - Four additional decoded peripheral-chip enables
+ * - CRC hardware for checking memory validity
+ * - Optionally emulates an 8042-style slave interface
+ * - Memory encryption using an 80-bit encryption key
+ * - Automatic random generation of encryption keys
+ * - Self-destruct input for tamper protection
+ * - Optional top-coating prevents microprobe
*
- * The main features of the DS5002FP are:
- * - 100% code-compatible with 8051
- * - Directly addresses 64kB program/64kB data memory
- * - Nonvolatile memory control circuitry
- * - 10-year data retention in the absence of power
- * - In-system reprogramming via serial port
- * - Dedicated memory bus, preserving four 8-bit ports for general purpose I/O
- * - Power-fail reset
- * - Early warning power-fail interrupt
- * - Watchdog timer
- * - Accesses up to 128kB on the bytewide bus
- * - Decodes memory for 32kB x 8 or 128kB x 8 SRAMs
- * - Four additional decoded peripheral-chip enables
- * - CRC hardware for checking memory validity
- * - Optionally emulates an 8042-style slave interface
- * - Memory encryption using an 80-bit encryption key
- * - Automatic random generation of encryption keys
- * - Self-destruct input for tamper protection
- * - Optional top-coating prevents microprobe
+ * TODO:
+ * - Peripherals and Reprogrammable Peripheral Controller
+ * - CRC-16
+ * - Watchdog timer
*
*****************************************************************************/
/******************************************************************************
- * Notes:
- *
- * The term cycles is used here to really refer to clock oscilations, because 1 machine cycle
- * actually takes 12 oscilations.
- *
- * Read/Write/Modify Instruction -
- * Data is read from the Port Latch (not the Port Pin!), possibly modified, and
- * written back to (the pin? and) the latch!
+ * Notes:
*
- * The following all perform this on a port address..
- * (anl, orl, xrl, jbc, cpl, inc, dec, djnz, mov px.y,c, clr px.y, setb px.y)
+ * The term cycles is used here to really refer to clock oscilations, because 1 machine cycle
+ * actually takes 12 oscilations.
*
- * August 27,2003: Currently support for only 8031/8051/8751 chips (ie 128 RAM)
- * October 14,2003: Added initial support for the 8752 (ie 256 RAM)
- * October 22,2003: Full support for the 8752 (ie 256 RAM)
- * July 28,2004: Fixed MOVX command and added External Ram Paging Support
- * July 31,2004: Added Serial Mode 0 Support & Fixed Interrupt Flags for Serial Port
+ * Read/Write/Modify Instruction -
+ * Data is read from the Port Latch (not the Port Pin!), possibly modified, and
+ * written back to (the pin? and) the latch!
*
- * October, 2008, Couriersud - Major rewrite
+ * The following all perform this on a port address..
+ * (anl, orl, xrl, jbc, cpl, inc, dec, djnz, mov px.y,c, clr px.y, setb px.y)
*
*****************************************************************************/
/* TODO: Various
- * - EA pin - defined by architecture, must implement:
- * 1 means external access, bypassing internal ROM
- * - T0 output clock ?
+ * - EA pin - defined by architecture, must implement:
+ * 1 means external access, bypassing internal ROM
+ * - T0 output clock ?
*
* - Implement 80C52 extended serial capabilities
* - Implement 83C751 in sslam.c
@@ -101,30 +80,6 @@
* a 0 written to it's latch. At least cardline expects a 1 here.
* - ADC support for 80552/80562 (controls analog inputs for Arctic Thunder)
*
- * Done: (Couriersud)
- * - Merged DS5002FP
- * - Disassembler now uses type specific memory names
- * - Merged DS5002FP disasm
- * - added 83C751 memory names to disassembler
- * - Pointer-ified
- * - Implemented cmos features
- * - Implemented 80C52 interrupt handling
- * - Fix segas18.c (segaic16.c) memory handling.
- * - Fix sslam.c
- * - Fix limenko.c videopkr.c : Issue with core allocation of ram (duplicate savestate)
- * - Handle internal ram better (debugger visible)
- * - Fixed port reading
- * - Rewrote Macros for better readability
- * - Fixed and rewrote Interrupt handling
- * - Now returns INTERNAL_DIVIDER, adjusted cycle counts
- * - Remove unnecessary and duplicated code
- * - Remove unnecessary functions
- * - Rewrite to have sfr-registers stored in int_ram.
- * - Debugger may now watch sfr-registers as well.
- * - implemented interrupt callbacks (HOLD_LINE now supported)
- * - Runtime switch for processor type - remove ifdefs
- * - internal memory maps for internal rom versions (internal ram now displayed in debugger)
- * - more timer cleanups from manual
*/
#include "emu.h"
@@ -205,7 +160,6 @@ enum
ADDR_RNR = 0xcf,
ADDR_RPCTL = 0xd8,
ADDR_RPS = 0xda
-
};
/* PC vectors */
@@ -895,13 +849,14 @@ offs_t mcs51_cpu_device::external_ram_iaddr(offs_t offset, offs_t mem_mask)
/* if partition mode is set, adjust offset based on the bus */
if (m_features & FEATURE_DS5002FP)
{
- if (GET_PES) {
+ if (GET_PES)
offset += 0x20000;
- } else if (!GET_PM) {
- if (!GET_EXBS) {
- if ((offset >= ds5002fp_partitions[GET_PA]) && (offset <= ds5002fp_ranges[m_ds5002fp.range])) {
+ else if (!GET_PM)
+ {
+ if (!GET_EXBS)
+ {
+ if ((offset >= ds5002fp_partitions[GET_PA]) && (offset <= ds5002fp_ranges[m_ds5002fp.range]))
offset += 0x10000;
- }
}
}
}
@@ -955,7 +910,8 @@ void mcs51_cpu_device::set_parity()
int i;
uint8_t a = ACC;
- for (i=0; i<8; i++) { //Test for each of the 8 bits in the ACC!
+ for (i=0; i<8; i++) //Test for each of the 8 bits in the ACC!
+ {
p ^= (a & 1);
a = (a >> 1);
}
@@ -974,7 +930,8 @@ uint8_t mcs51_cpu_device::bit_address_r(uint8_t offset)
m_last_bit = offset;
//User defined bit addresses 0x20-0x2f (values are 0x0-0x7f)
- if (offset < 0x80) {
+ if (offset < 0x80)
+ {
distance = 1;
word = ( (offset & 0x78) >> 3) * distance + 0x20;
bit_pos = offset & 0x7;
@@ -982,7 +939,8 @@ uint8_t mcs51_cpu_device::bit_address_r(uint8_t offset)
return((IRAM_R(word) & mask) >> bit_pos);
}
//SFR bit addressable registers
- else {
+ else
+ {
distance = 8;
word = ( (offset & 0x78) >> 3) * distance + 0x80;
bit_pos = offset & 0x7;
@@ -1001,7 +959,8 @@ void mcs51_cpu_device::bit_address_w(uint8_t offset, uint8_t bit)
int distance;
/* User defined bit addresses 0x20-0x2f (values are 0x0-0x7f) */
- if (offset < 0x80) {
+ if (offset < 0x80)
+ {
distance = 1;
word = ((offset & 0x78) >> 3) * distance + 0x20;
bit_pos = offset & 0x7;
@@ -1012,7 +971,8 @@ void mcs51_cpu_device::bit_address_w(uint8_t offset, uint8_t bit)
IRAM_W(word, result);
}
/* SFR bit addressable registers */
- else {
+ else
+ {
distance = 8;
word = ((offset & 0x78) >> 3) * distance + 0x80;
bit_pos = offset & 0x7;
@@ -1070,7 +1030,8 @@ void mcs51_cpu_device::transmit_receive(int source)
if (source == 1) /* timer1 */
m_uart.smod_div = (m_uart.smod_div + 1) & (1-GET_SMOD);
- switch(mode) {
+ switch(mode)
+ {
// 8 bit shifter - rate set by clock freq / 12
case 0:
if (source == 0)
@@ -1287,7 +1248,8 @@ void mcs51_cpu_device::update_timer_t0(int cycles)
if (GET_GATE0 && !GET_IE0)
delta = 0;
- switch(mode) {
+ switch(mode)
+ {
case 0: /* 13 Bit Timer Mode */
count = ((TH0<<5) | ( TL0 & 0x1f ) );
count += delta;
@@ -1377,7 +1339,8 @@ void mcs51_cpu_device::update_timer_t1(int cycles)
if (GET_GATE1 && !GET_IE1)
delta = 0;
- switch(mode) {
+ switch(mode)
+ {
case 0: /* 13 Bit Timer Mode */
count = ((TH1<<5) | ( TL1 & 0x1f ) );
count += delta;
@@ -1421,7 +1384,8 @@ void mcs51_cpu_device::update_timer_t1(int cycles)
delta = cycles;
/* taken, reset */
m_t1_cnt = 0;
- switch(mode) {
+ switch(mode)
+ {
case 0: /* 13 Bit Timer Mode */
count = ((TH1<<5) | ( TL1 & 0x1f ) );
count += delta;
@@ -1460,7 +1424,8 @@ void mcs51_cpu_device::update_timer_t1(int cycles)
void mcs51_cpu_device::update_timer_t2(int cycles)
{
/* Update Timer 2 */
- if(GET_TR2) {
+ if(GET_TR2)
+ {
int mode = ((GET_TCLK | GET_RCLK) << 1) | GET_CP;
int delta = GET_CT2 ? m_t2_cnt : (mode & 2) ? cycles * (12/2) : cycles;
@@ -1855,7 +1820,8 @@ void mcs51_cpu_device::execute_op(uint8_t op)
***************************************************************************/
/* # of oscilations each opcode requires*/
-const uint8_t mcs51_cpu_device::mcs51_cycles[256] = {
+const uint8_t mcs51_cpu_device::mcs51_cycles[256] =
+{
1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,
@@ -1990,7 +1956,8 @@ void mcs51_cpu_device::check_irqs()
LOG("Take: %d %02x\n", m_cur_irq_prio, m_irq_active);
//Clear any interrupt flags that should be cleared since we're servicing the irq!
- switch(int_vec) {
+ switch(int_vec)
+ {
case V_IE0:
//External Int Flag only cleared when configured as Edge Triggered..
if(GET_IT0) /* for some reason having this, breaks alving dmd games */
@@ -2063,9 +2030,11 @@ void mcs51_cpu_device::execute_set_input(int irqline, int state)
//External Interrupt 0
case MCS51_INT0_LINE:
//Line Asserted?
- if (state != CLEAR_LINE) {
+ if (state != CLEAR_LINE)
+ {
//Need cleared->active line transition? (Logical 1-0 Pulse on the line) - CLEAR->ASSERT Transition since INT0 active lo!
- if (GET_IT0) {
+ if (GET_IT0)
+ {
if (GET_BIT(tr_state, MCS51_INT0_LINE))
SET_IE0(1);
}
@@ -2085,9 +2054,11 @@ void mcs51_cpu_device::execute_set_input(int irqline, int state)
//External Interrupt 1
case MCS51_INT1_LINE:
//Line Asserted?
- if (state != CLEAR_LINE) {
+ if (state != CLEAR_LINE)
+ {
//Need cleared->active line transition? (Logical 1-0 Pulse on the line) - CLEAR->ASSERT Transition since INT1 active lo!
- if(GET_IT1){
+ if(GET_IT1)
+ {
if (GET_BIT(tr_state, MCS51_INT1_LINE))
SET_IE1(1);
}
diff --git a/src/devices/cpu/mcs51/mcs51.h b/src/devices/cpu/mcs51/mcs51.h
index 40397cf81ad..340f520eed4 100644
--- a/src/devices/cpu/mcs51/mcs51.h
+++ b/src/devices/cpu/mcs51/mcs51.h
@@ -2,28 +2,8 @@
// copyright-holders:Steve Ellenoff, Manuel Abadia, Couriersud
/*****************************************************************************
*
- * mcs51.h
- * Portable MCS-51 Family Emulator
- *
- * Chips in the family:
- * 8051 Product Line (8031,8051,8751)
- * 8052 Product Line (8032,8052,8752)
- * 8054 Product Line (8054)
- * 8058 Product Line (8058)
- *
- * Copyright Steve Ellenoff, all rights reserved.
- *
- * This work is based on:
- * #1) 'Intel(tm) MC51 Microcontroller Family Users Manual' and
- * #2) 8051 simulator by Travis Marlatte
- * #3) Portable UPI-41/8041/8741/8042/8742 emulator V0.1 by Juergen Buchmueller (MAME CORE)
- *
- * 2008, October, Couriersud
- * - Rewrite of timer, interrupt and serial code
- * - addition of CMOS features
- * - internal memory maps
- * - addition of new processor types
- * - full emulation of 8xCx2 processors
+ * Portable MCS-51 Family Emulator
+ * Copyright Steve Ellenoff
*
*****************************************************************************/
diff --git a/src/devices/cpu/mcs51/mcs51dasm.cpp b/src/devices/cpu/mcs51/mcs51dasm.cpp
index 2c98f132218..ab3489d928f 100644
--- a/src/devices/cpu/mcs51/mcs51dasm.cpp
+++ b/src/devices/cpu/mcs51/mcs51dasm.cpp
@@ -2,25 +2,12 @@
// copyright-holders:Steve Ellenoff
/*****************************************************************************
*
- * i8051dasm.c
- * Portable MCS-51 Family Emulator
+ * Portable MCS-51 Family Disassembler
+ * Copyright Steve Ellenoff
*
- * Chips in the family:
- * 8051 Product Line (8031,8051,8751)
- * 8052 Product Line (8032,8052,8752)
- * 8054 Product Line (8054)
- * 8058 Product Line (8058)
- *
- * Copyright Steve Ellenoff, all rights reserved.
- *
- * This work is based on:
- * #1) 'Intel(tm) MC51 Microcontroller Family Users Manual' and
- * #2) 8051 simulator by Travis Marlatte
- * #3) Portable UPI-41/8041/8741/8042/8742 emulator V0.1 by Juergen Buchmueller (MAME CORE)
- *
- *****************************************************************************
* Symbol Memory Name Tables borrowed from:
* D52 8052 Disassembler - Copyright Jeffery L. Post
+ *
*****************************************************************************/
#include "emu.h"
@@ -320,16 +307,16 @@ const mcs51_disassembler::mem_info mcs51_disassembler::i8xc751_names[] = {
{ 0x98, "i2con" },
{ 0x99, "i2dat" },
{ 0xd8, "i2cfg" },
- { 0xf8, "i2sta" }, /* read only */
-
- { 0x198, "xstp" }, /* read: no function */
- { 0x199, "xstr" }, /* read: MASTER */
- { 0x19a, "cstp" }, /* read: STP */
- { 0x19b, "cstr" }, /* read: STR */
- { 0x19c, "carl" }, /* read: ARL */
- { 0x19d, "cdr" }, /* read: DRDY */
- { 0x19e, "idle" }, /* read: ATN */
- { 0x19f, "cxa" }, /* read: RDAT */
+ { 0xf8, "i2sta" }, // read only
+
+ { 0x198, "xstp" }, // read: no function
+ { 0x199, "xstr" }, // read: MASTER
+ { 0x19a, "cstp" }, // read: STP
+ { 0x19b, "cstr" }, // read: STR
+ { 0x19c, "carl" }, // read: ARL
+ { 0x19d, "cdr" }, // read: DRDY
+ { 0x19e, "idle" }, // read: ATN
+ { 0x19f, "cxa" }, // read: RDAT
{ 0x1ac, "ei2" },
diff --git a/src/devices/cpu/mcs51/mcs51dasm.h b/src/devices/cpu/mcs51/mcs51dasm.h
index f1e0fccdd74..4ef2a2fd486 100644
--- a/src/devices/cpu/mcs51/mcs51dasm.h
+++ b/src/devices/cpu/mcs51/mcs51dasm.h
@@ -2,25 +2,9 @@
// copyright-holders:Steve Ellenoff
/*****************************************************************************
*
- * i8051dasm.c
- * Portable MCS-51 Family Emulator
+ * Portable MCS-51 Family Disassembler
+ * Copyright Steve Ellenoff
*
- * Chips in the family:
- * 8051 Product Line (8031,8051,8751)
- * 8052 Product Line (8032,8052,8752)
- * 8054 Product Line (8054)
- * 8058 Product Line (8058)
- *
- * Copyright Steve Ellenoff, all rights reserved.
- *
- * This work is based on:
- * #1) 'Intel(tm) MC51 Microcontroller Family Users Manual' and
- * #2) 8051 simulator by Travis Marlatte
- * #3) Portable UPI-41/8041/8741/8042/8742 emulator V0.1 by Juergen Buchmueller (MAME CORE)
- *
- *****************************************************************************
- * Symbol Memory Name Tables borrowed from:
- * D52 8052 Disassembler - Copyright Jeffery L. Post
*****************************************************************************/
#ifndef MAME_CPU_MCS51_MCS51DASM_H
diff --git a/src/devices/cpu/sc61860/sc61860.cpp b/src/devices/cpu/sc61860/sc61860.cpp
index 70743897fe6..869339d85d7 100644
--- a/src/devices/cpu/sc61860/sc61860.cpp
+++ b/src/devices/cpu/sc61860/sc61860.cpp
@@ -6,7 +6,7 @@
* portable sharp 61860 emulator interface
* (sharp pocket computers)
*
- * Copyright Peter Trauner, all rights reserved.
+ * Copyright Peter Trauner
*
* History of changes:
* 29.7.2001 Several changes listed below taken by Mario Konegger
diff --git a/src/devices/cpu/sc61860/sc61860.h b/src/devices/cpu/sc61860/sc61860.h
index 8345ee08067..bbfb2f3740e 100644
--- a/src/devices/cpu/sc61860/sc61860.h
+++ b/src/devices/cpu/sc61860/sc61860.h
@@ -6,7 +6,7 @@
* portable sharp 61860 emulator interface
* (sharp pocket computers)
*
- * Copyright Peter Trauner, all rights reserved.
+ * Copyright Peter Trauner
*
*****************************************************************************/
diff --git a/src/devices/cpu/sc61860/scdasm.cpp b/src/devices/cpu/sc61860/scdasm.cpp
index 8b14a920d62..4335c102aaa 100644
--- a/src/devices/cpu/sc61860/scdasm.cpp
+++ b/src/devices/cpu/sc61860/scdasm.cpp
@@ -6,7 +6,7 @@
* portable sharp 61860 emulator interface
* (sharp pocket computers)
*
- * Copyright Peter Trauner, all rights reserved.
+ * Copyright Peter Trauner
*
*****************************************************************************/
diff --git a/src/devices/cpu/sc61860/scdasm.h b/src/devices/cpu/sc61860/scdasm.h
index 575106ac2c8..4a5445ba4f0 100644
--- a/src/devices/cpu/sc61860/scdasm.h
+++ b/src/devices/cpu/sc61860/scdasm.h
@@ -6,7 +6,7 @@
* portable sharp 61860 emulator interface
* (sharp pocket computers)
*
- * Copyright Peter Trauner, all rights reserved.
+ * Copyright Peter Trauner
*
*****************************************************************************/
diff --git a/src/devices/cpu/sc61860/scops.hxx b/src/devices/cpu/sc61860/scops.hxx
index f43d41cf0c3..9f668b40cb9 100644
--- a/src/devices/cpu/sc61860/scops.hxx
+++ b/src/devices/cpu/sc61860/scops.hxx
@@ -6,7 +6,7 @@
* portable sharp 61860 emulator interface
* (sharp pocket computers)
*
- * Copyright Peter Trauner, all rights reserved.
+ * Copyright Peter Trauner
*
* History of changes:
* 21.07.2001 Several changes listed below were made by Mario Konegger
diff --git a/src/devices/cpu/scudsp/scudsp.cpp b/src/devices/cpu/scudsp/scudsp.cpp
index 2f8c2d0e0a6..79f7c0402b8 100644
--- a/src/devices/cpu/scudsp/scudsp.cpp
+++ b/src/devices/cpu/scudsp/scudsp.cpp
@@ -5,7 +5,7 @@
* scudsp.c
* Sega SCUDSP emulator version 1.00
*
- * copyright Angelo Salese & Mariusz Wojcieszek, all rights reserved
+ * copyright Angelo Salese & Mariusz Wojcieszek
*
* Changelog:
* 131010: Angelo Salese
diff --git a/src/devices/cpu/spc700/spc700ds.cpp b/src/devices/cpu/spc700/spc700ds.cpp
index 2d99819e1b4..3e43fb2cf64 100644
--- a/src/devices/cpu/spc700/spc700ds.cpp
+++ b/src/devices/cpu/spc700/spc700ds.cpp
@@ -8,7 +8,6 @@
SPC700 CPU Emulator V0.90
Copyright Karl Stenerud
-All rights reserved.
*/
diff --git a/src/devices/cpu/spc700/spc700ds.h b/src/devices/cpu/spc700/spc700ds.h
index 9306b23b740..88a606e08cf 100644
--- a/src/devices/cpu/spc700/spc700ds.h
+++ b/src/devices/cpu/spc700/spc700ds.h
@@ -13,8 +13,6 @@
Sony SPC700 CPU Emulator V1.0
Copyright Karl Stenerud
-All rights reserved.
-
*/
diff --git a/src/mame/layout/cxg_pchess.lay b/src/mame/layout/cxg_pchess.lay
index 87b0789bdca..1da645b6fc0 100644
--- a/src/mame/layout/cxg_pchess.lay
+++ b/src/mame/layout/cxg_pchess.lay
@@ -9,7 +9,6 @@ authors:hap
<!-- define elements -->
- <element name="gray"><rect><color red="0.2" green="0.2" blue="0.2" /></rect></element>
<element name="lcdm"><rect><color red="0.54" green="0.57" blue="0.58" /></rect></element>
<element name="but" defstate="0">
diff --git a/src/mame/sega/fd1089.cpp b/src/mame/sega/fd1089.cpp
index 80c681bbb5c..9f65f617760 100644
--- a/src/mame/sega/fd1089.cpp
+++ b/src/mame/sega/fd1089.cpp
@@ -8,8 +8,6 @@
Copyright Nicola Salmoria, Andreas Naive, and Charles MacDonald.
- All rights reserved.
-
****************************************************************************
Decryption tables provided by Charles MacDonald
diff --git a/src/mame/sega/fd1089.h b/src/mame/sega/fd1089.h
index 595b48dcc84..6bfcfa80443 100644
--- a/src/mame/sega/fd1089.h
+++ b/src/mame/sega/fd1089.h
@@ -8,8 +8,6 @@
Copyright Nicola Salmoria, Andreas Naive, and Charles MacDonald.
- All rights reserved.
-
***************************************************************************/
#ifndef MAME_SEGA_FD1089_H
diff --git a/src/mame/sega/fd1094.cpp b/src/mame/sega/fd1094.cpp
index c38ca087bce..25a053596fa 100644
--- a/src/mame/sega/fd1094.cpp
+++ b/src/mame/sega/fd1094.cpp
@@ -8,8 +8,6 @@
Copyright Nicola Salmoria, Andreas Naive, and Charles MacDonald.
- All rights reserved.
-
****************************************************************************
The FD1094 is a custom CPU based on the 68000, which runs encrypted code.
diff --git a/src/mame/sega/fd1094.h b/src/mame/sega/fd1094.h
index d122a3701e0..65539e7320c 100644
--- a/src/mame/sega/fd1094.h
+++ b/src/mame/sega/fd1094.h
@@ -8,8 +8,6 @@
Copyright Nicola Salmoria, Andreas Naive, and Charles MacDonald.
- All rights reserved.
-
***************************************************************************/
#ifndef MAME_SEGA_FD1094_H
diff --git a/src/mame/sharp/pc1403.cpp b/src/mame/sharp/pc1403.cpp
index 4e70ecff97b..b08d65dd213 100644
--- a/src/mame/sharp/pc1403.cpp
+++ b/src/mame/sharp/pc1403.cpp
@@ -6,7 +6,7 @@
* Portable Sharp PC1403 video emulator interface
* (Sharp pocket computers)
*
- * Copyright (c) 2001 Peter Trauner, all rights reserved.
+ * Copyright (c) 2001 Peter Trauner
*
* Change Log:
* 21.07.2001 Several changes listed below were made by Mario Konegger
diff --git a/src/mame/universal/cheekyms.cpp b/src/mame/universal/cheekyms.cpp
index 69a63a26806..86f83f71755 100644
--- a/src/mame/universal/cheekyms.cpp
+++ b/src/mame/universal/cheekyms.cpp
@@ -2,8 +2,9 @@
// copyright-holders: Lee Taylor, Chris Moore
/*************************************************************************
+
Universal Cheeky Mouse Driver
- (c)Lee Taylor May/June 1998, All rights reserved.
+ (c)Lee Taylor May/June 1998
**************************************************************************/
diff --git a/src/osd/modules/render/bgfx/shaders/shader.mk b/src/osd/modules/render/bgfx/shaders/shader.mk
index e63d171a3ca..cc656d5e828 100644
--- a/src/osd/modules/render/bgfx/shaders/shader.mk
+++ b/src/osd/modules/render/bgfx/shaders/shader.mk
@@ -1,5 +1,5 @@
#
-# Copyright 2011-2021 Branimir Karadzic. All rights reserved.
+# Copyright 2011-2021 Branimir Karadzic.
# License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
#