MIXAL
Public Member Functions | List of all members
mixal::IODeviceDisk Class Reference

#include <io.h>

Inheritance diagram for mixal::IODeviceDisk:
mixal::IODeviceStorage mixal::IODevice

Public Member Functions

 IODeviceDisk (int32_t storageSize=4096)
 
void control (int32_t operation) final
 
- Public Member Functions inherited from mixal::IODeviceStorage
 IODeviceStorage (int32_t storageSize=4096)
 
 IODeviceStorage (const IODeviceStorage &)=default
 
IODeviceStorageoperator= (const IODeviceStorage &)=default
 
bool ready (int32_t elapsed) override
 
void read (ComputerWord *memory, int32_t address) override
 
void write (const ComputerWord *memory, int32_t address) override
 
ComputerWordwordAt (int32_t index) override
 
- Public Member Functions inherited from mixal::IODevice
 IODevice (int32_t blockSize, bool allowRead, bool allowWrite)
 
IODeviceType type () const
 
int blockSize () const
 
bool allowRead () const
 
bool allowWrite () const
 

Additional Inherited Members

- Protected Member Functions inherited from mixal::IODeviceStorage
void doRead () override
 
void doWrite () override
 
- Protected Attributes inherited from mixal::IODeviceStorage
IODeviceStatus _status
 
int32_t _address
 
int32_t _locator
 
ComputerWord_memory
 
std::vector< ComputerWord_buffer
 
std::vector< ComputerWord_storage
 
- Protected Attributes inherited from mixal::IODevice
IODeviceType _type
 
int32_t _blockSize
 
bool _allowRead
 
bool _allowWrite
 
int32_t _timestamp
 
double _readyRate
 

Detailed Description

Disk or drum.

Warning
The documentation of the device is unclear yet.

Definition at line 128 of file io.h.

Member Function Documentation

◆ control()

void mixal::IODeviceDisk::control ( int32_t  operation)
finalvirtual

Position the device according to the given value (rX).

Reimplemented from mixal::IODevice.

Definition at line 99 of file io.cpp.

99  {
100  _locator = operation;
101 }

The documentation for this class was generated from the following files: