mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
30 lines
586 B
C++
30 lines
586 B
C++
#pragma once
|
|
|
|
#include "Iop_Module.h"
|
|
#include "ArgumentIterator.h"
|
|
|
|
namespace Iop
|
|
{
|
|
class CIoman;
|
|
|
|
class CStdio : public CModule
|
|
{
|
|
public:
|
|
CStdio(uint8*, CIoman&);
|
|
virtual ~CStdio() = default;
|
|
|
|
std::string GetId() const override;
|
|
std::string GetFunctionName(unsigned int) const override;
|
|
void Invoke(CMIPS&, unsigned int) override;
|
|
|
|
void __printf(CMIPS&);
|
|
int32 __puts(uint32);
|
|
std::string PrintFormatted(const char*, CArgumentIterator&);
|
|
|
|
private:
|
|
uint8* m_ram;
|
|
CIoman& m_ioman;
|
|
};
|
|
|
|
typedef std::shared_ptr<CStdio> StdioPtr;
|
|
}
|