summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hp2640.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/hp2640.cpp')
-rw-r--r--src/mame/drivers/hp2640.cpp42
1 files changed, 22 insertions, 20 deletions
diff --git a/src/mame/drivers/hp2640.cpp b/src/mame/drivers/hp2640.cpp
index 85c98f71d43..35438955326 100644
--- a/src/mame/drivers/hp2640.cpp
+++ b/src/mame/drivers/hp2640.cpp
@@ -120,30 +120,30 @@
#define VERBOSE 0
#include "logmacro.h"
-// Bit manipulation
namespace {
- template<typename T> constexpr T BIT_MASK(unsigned n)
- {
- return (T)1U << n;
- }
- template<typename T> void BIT_CLR(T& w , unsigned n)
- {
- w &= ~BIT_MASK<T>(n);
- }
+// Bit manipulation
+template<typename T> constexpr T BIT_MASK(unsigned n)
+{
+ return (T)1U << n;
+}
- template<typename T> void BIT_SET(T& w , unsigned n)
- {
- w |= BIT_MASK<T>(n);
- }
+template<typename T> void BIT_CLR(T& w , unsigned n)
+{
+ w &= ~BIT_MASK<T>(n);
+}
- template<typename T> void COPY_BIT(bool bit , T& w , unsigned n)
- {
- if (bit) {
- BIT_SET(w , n);
- } else {
- BIT_CLR(w , n);
- }
+template<typename T> void BIT_SET(T& w , unsigned n)
+{
+ w |= BIT_MASK<T>(n);
+}
+
+template<typename T> void COPY_BIT(bool bit , T& w , unsigned n)
+{
+ if (bit) {
+ BIT_SET(w , n);
+ } else {
+ BIT_CLR(w , n);
}
}
@@ -1270,5 +1270,7 @@ ROM_START(hp2645)
ROM_LOAD("1816-1425.bin", 0x0000, 0x400, CRC(69a34fef) SHA1(816929cadd53c2fe42b3ca561c029cb1ccd4ca24))
ROM_END
+} // anonymous namespace
+
COMP( 1976, hp2641, 0, 0, hp2641, hp2641 , hp2641_state, empty_init, "Hewlett-Packard", "HP 2641A", 0)
COMP( 1976, hp2645, 0, 0, hp2645, hp2640_base, hp2645_state, empty_init, "Hewlett-Packard", "HP 2645A", 0)