summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/upd7725/upd7725.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/upd7725/upd7725.h')
-rwxr-xr-xsrc/emu/cpu/upd7725/upd7725.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/upd7725/upd7725.h b/src/emu/cpu/upd7725/upd7725.h
index 82f65034a4c..4e64e74e57e 100755
--- a/src/emu/cpu/upd7725/upd7725.h
+++ b/src/emu/cpu/upd7725/upd7725.h
@@ -113,7 +113,7 @@ private:
struct Flag
{
bool s1, s0, c, z, ov1, ov0;
-
+
inline operator unsigned() const
{
return (s1 << 5) + (s0 << 4) + (c << 3) + (z << 2) + (ov1 << 1) + (ov0 << 0);
@@ -129,14 +129,14 @@ private:
struct Status
{
bool rqm, usf1, usf0, drs, dma, drc, soc, sic, ei, p1, p0;
-
+
inline operator unsigned() const
{
return (rqm << 15) + (usf1 << 14) + (usf0 << 13) + (drs << 12)
+ (dma << 11) + (drc << 10) + (soc << 9) + (sic << 8)
+ (ei << 7) + (p1 << 1) + (p0 << 0);
}
-
+
inline unsigned operator=(unsigned d)
{
rqm = d & 0x8000; usf1 = d & 0x4000; usf0 = d & 0x2000; drs = d & 0x1000;
@@ -146,7 +146,7 @@ private:
}
};
- struct Regs
+ struct Regs
{
UINT16 pc; //program counter
UINT16 stack[16]; //LIFO