OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [src/] [librw11/] [Rw11UnitTapeBase.ipp] - Blame information for rev 31

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 31 wfjm
// $Id: Rw11UnitTapeBase.ipp 686 2015-06-04 21:08:08Z mueller $
2
//
3
// Copyright 2015- by Walter F.J. Mueller 
4
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
//
14
// Revision History:
15
// Date         Rev Version  Comment
16
// 2015-06-04   686   1.0    Initial version
17
// 2015-05-17   683   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22
  \version $Id: Rw11UnitTapeBase.ipp 686 2015-06-04 21:08:08Z mueller $
23
  \brief   Implemenation (inline) of Rw11UnitTapeBase.
24
*/
25
 
26
#include "Rw11UnitTapeBase.hpp"
27
 
28
/*!
29
  \class Retro::Rw11UnitTapeBase
30
  \brief FIXME_docs
31
*/
32
 
33
// all method definitions in namespace Retro
34
namespace Retro {
35
 
36
//------------------------------------------+-----------------------------------
37
//! Default constructor
38
 
39
template 
40
Rw11UnitTapeBase::Rw11UnitTapeBase(TC* pcntl, size_t index)
41
  : Rw11UnitTape(pcntl, index),
42
    fpCntl(pcntl)
43
{}
44
 
45
//------------------------------------------+-----------------------------------
46
//! Destructor
47
 
48
template 
49
Rw11UnitTapeBase::~Rw11UnitTapeBase()
50
{}
51
 
52
//------------------------------------------+-----------------------------------
53
//! FIXME_docs
54
 
55
template 
56
inline TC& Rw11UnitTapeBase::Cntl() const
57
{
58
  return *fpCntl;
59
}
60
 
61
//------------------------------------------+-----------------------------------
62
//! FIXME_docs
63
 
64
template 
65
void Rw11UnitTapeBase::Dump(std::ostream& os, int ind,
66
                                const char* text) const
67
{
68
  RosFill bl(ind);
69
  os << bl << (text?text:"--") << "Rw11UnitTapeBase  @ " << this << std::endl;
70
  os << bl << "  fpCntl:          " << fpCntl   << std::endl;
71
  Rw11UnitTape::Dump(os, ind, " ^");
72
  return;
73
}
74
 
75
//------------------------------------------+-----------------------------------
76
//! FIXME_docs
77
 
78
template 
79
void  Rw11UnitTapeBase::AttachDone()
80
{
81
  // transfer, if defined, wprot and capacity from unit to virt
82
  if (WProt()) Virt()->SetWProt(true);
83
  if (Capacity()!=0 && Virt()->Capacity()==0) Virt()->SetCapacity(Capacity());
84
  Cntl().UnitSetup(Index());
85
  return;
86
}
87
 
88
 
89
//------------------------------------------+-----------------------------------
90
//! FIXME_docs
91
 
92
template 
93
void  Rw11UnitTapeBase::DetachDone()
94
{
95
  Cntl().UnitSetup(Index());
96
  return;
97
}
98
 
99
} // end namespace Retro

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.