lcd.hh
来自「一个mips虚拟机非常好代码,使用C++来编写的,希望大家多学学,」· HH 代码 · 共 42 行
HH
42 行
#ifndef lcd_hh_included#define lcd_hh_included#include <inttypes.hh>#include <module.hh>#include <device.hh>#include <serial.hh>#include <checkpoint.hh>#include <simarg.hh>class U4600_LCD : public Module, public Device{private: static SerialType<U4600_LCD> type; char lcd_contents[4]; void show_lcd();public: // Constructors, etc. U4600_LCD(const SimArgs& args); U4600_LCD(Checkpoint& cp); // Module interfaces. void reset(bool warm); // Serialization information. void checkpoint(Checkpoint& cp, bool parent = false) const; // Device access. ClockValue read(UInt64 addr, UInt64* buf, int size); ClockValue write(UInt64 addr, const UInt64* buf, int size);};#endif // lcd_hh_included
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?