Previous 199869 Revisions Next

r28743 Wednesday 19th March, 2014 at 21:03:21 UTC by Oliver Stöneberg
forgot to rename am.c (nw)
[src/emu/cpu/v60]am.c am.inc*

trunk/src/emu/cpu/v60/am.c
r28742r28743
1
2// NOTE for bit string / field addressing
3// ************************************
4// m_moddim must be passed as 10 for bit string instructions,
5// and as 11 for bit field instructions
6
7
8
9
10// Addressing mode functions and tables
11#include "am1.inc" // ReadAM
12#include "am2.inc" // ReadAMAddress
13#include "am3.inc" // WriteAM
14
15/*
16  Input:
17  m_modadd
18    m_moddim
19
20  Output:
21    m_amout
22    amLength
23*/
24
25UINT32 v60_device::ReadAM()
26{
27   m_modm = m_modm?1:0;
28   m_modval = OpRead8(m_modadd);
29   return (this->*s_AMTable1[m_modm][m_modval >> 5])();
30}
31
32UINT32 v60_device::BitReadAM()
33{
34   m_modm = m_modm?1:0;
35   m_modval = OpRead8(m_modadd);
36   return (this->*s_BAMTable1[m_modm][m_modval >> 5])();
37}
38
39
40
41/*
42  Input:
43  m_modadd
44    m_moddim
45
46  Output:
47    m_amout
48    m_amflag
49    amLength
50*/
51
52UINT32 v60_device::ReadAMAddress()
53{
54   m_modm = m_modm?1:0;
55   m_modval = OpRead8(m_modadd);
56   return (this->*s_AMTable2[m_modm][m_modval >> 5])();
57}
58
59UINT32 v60_device::BitReadAMAddress()
60{
61   m_modm = m_modm?1:0;
62   m_modval = OpRead8(m_modadd);
63   return (this->*s_BAMTable2[m_modm][m_modval >> 5])();
64}
65
66/*
67  Input:
68  m_modadd
69    m_moddim
70    m_modwritevalb / H/W
71
72  Output:
73    m_amout
74    amLength
75*/
76
77UINT32 v60_device::WriteAM()
78{
79   m_modm = m_modm?1:0;
80   m_modval = OpRead8(m_modadd);
81   return (this->*s_AMTable3[m_modm][m_modval >> 5])();
82}
trunk/src/emu/cpu/v60/am.inc
r0r28743
1
2// NOTE for bit string / field addressing
3// ************************************
4// m_moddim must be passed as 10 for bit string instructions,
5// and as 11 for bit field instructions
6
7
8
9
10// Addressing mode functions and tables
11#include "am1.inc" // ReadAM
12#include "am2.inc" // ReadAMAddress
13#include "am3.inc" // WriteAM
14
15/*
16  Input:
17  m_modadd
18    m_moddim
19
20  Output:
21    m_amout
22    amLength
23*/
24
25UINT32 v60_device::ReadAM()
26{
27   m_modm = m_modm?1:0;
28   m_modval = OpRead8(m_modadd);
29   return (this->*s_AMTable1[m_modm][m_modval >> 5])();
30}
31
32UINT32 v60_device::BitReadAM()
33{
34   m_modm = m_modm?1:0;
35   m_modval = OpRead8(m_modadd);
36   return (this->*s_BAMTable1[m_modm][m_modval >> 5])();
37}
38
39
40
41/*
42  Input:
43  m_modadd
44    m_moddim
45
46  Output:
47    m_amout
48    m_amflag
49    amLength
50*/
51
52UINT32 v60_device::ReadAMAddress()
53{
54   m_modm = m_modm?1:0;
55   m_modval = OpRead8(m_modadd);
56   return (this->*s_AMTable2[m_modm][m_modval >> 5])();
57}
58
59UINT32 v60_device::BitReadAMAddress()
60{
61   m_modm = m_modm?1:0;
62   m_modval = OpRead8(m_modadd);
63   return (this->*s_BAMTable2[m_modm][m_modval >> 5])();
64}
65
66/*
67  Input:
68  m_modadd
69    m_moddim
70    m_modwritevalb / H/W
71
72  Output:
73    m_amout
74    amLength
75*/
76
77UINT32 v60_device::WriteAM()
78{
79   m_modm = m_modm?1:0;
80   m_modval = OpRead8(m_modadd);
81   return (this->*s_AMTable3[m_modm][m_modval >> 5])();
82}
Property changes on: trunk/src/emu/cpu/v60/am.inc
Added: svn:mime-type
   + text/plain
Added: svn:eol-style
   + native

Previous 199869 Revisions Next


© 1997-2024 The MAME Team