2014-08-02 21:23:25 -04:00
|
|
|
#pragma once
|
2008-01-15 20:27:44 +00:00
|
|
|
|
|
|
|
#include "Iop_Module.h"
|
|
|
|
#include "ArgumentIterator.h"
|
|
|
|
|
|
|
|
namespace Iop
|
|
|
|
{
|
2014-08-02 21:23:25 -04:00
|
|
|
class CIoman;
|
|
|
|
|
2012-03-31 23:24:25 +00:00
|
|
|
class CStdio : public CModule
|
|
|
|
{
|
|
|
|
public:
|
2018-04-30 21:01:23 +01:00
|
|
|
CStdio(uint8*, CIoman&);
|
2018-05-25 21:52:36 -04:00
|
|
|
virtual ~CStdio() = default;
|
2012-03-31 23:24:25 +00:00
|
|
|
|
2018-04-30 21:01:23 +01:00
|
|
|
std::string GetId() const override;
|
|
|
|
std::string GetFunctionName(unsigned int) const override;
|
|
|
|
void Invoke(CMIPS&, unsigned int) override;
|
2008-11-28 23:46:52 +00:00
|
|
|
|
2018-04-30 21:01:23 +01:00
|
|
|
void __printf(CMIPS&);
|
2018-05-27 15:11:48 -04:00
|
|
|
int32 __puts(uint32);
|
2018-04-30 21:01:23 +01:00
|
|
|
std::string PrintFormatted(const char*, CArgumentIterator&);
|
2008-01-15 20:27:44 +00:00
|
|
|
|
2012-03-31 23:24:25 +00:00
|
|
|
private:
|
2018-04-30 21:01:23 +01:00
|
|
|
uint8* m_ram;
|
|
|
|
CIoman& m_ioman;
|
2012-03-31 23:24:25 +00:00
|
|
|
};
|
2016-01-13 22:18:10 -05:00
|
|
|
|
|
|
|
typedef std::shared_ptr<CStdio> StdioPtr;
|
2008-01-15 20:27:44 +00:00
|
|
|
}
|