Versions in this module Expand all Collapse all v0 v0.3.0 Sep 10, 2021 v0.2.0 Jul 27, 2021 v0.1.0 Jul 21, 2021 Changes in this version + const FramebufferHeight + const FramebufferWidth + type Clipboard interface + ReadControl func() uint32 + ReadData func() uint32 + WriteControl func(len uint32) + WriteData func(value uint32) + type Error struct + PC uint32 + func (e *Error) Error() string + type Framebuffer struct + Pix []uint32 + Rect image.Rectangle + func (fb *Framebuffer) At(x, y int) color.Color + func (fb *Framebuffer) Bounds() image.Rectangle + func (fb *Framebuffer) ColorModel() color.Model + func (fb *Framebuffer) PixOffset(x, y int) (i, bit int) + type LED interface + Write func(value uint32) + type RISC struct + C bool + H uint32 + Mem []uint32 + N bool + PC uint32 + R [16]uint32 + V bool + Z bool + func New() *RISC + func (r *RISC) ConfigureMemory(megabytesRAM, screenWidth, screenHeight int) + func (r *RISC) Framebuffer() *Framebuffer + func (r *RISC) GetFramebufferDamageAndReset() image.Rectangle + func (r *RISC) KeyboardInput(ps2commands []byte) + func (r *RISC) MouseButton(button int, down bool) + func (r *RISC) MouseMoved(x, y int) + func (r *RISC) Reset() + func (r *RISC) Run(cycles int) error + func (r *RISC) SetClipboard(c Clipboard) + func (r *RISC) SetLEDs(l LED) + func (r *RISC) SetSPI(index int, spi SPI) + func (r *RISC) SetSerial(s Serial) + func (r *RISC) SetSwitches(s int) + func (r *RISC) SetTime(millis uint32) + type SPI interface + ReadData func() uint32 + WriteData func(value uint32) + type Serial interface + ReadData func() uint32 + ReadStatus func() uint32 + WriteData func(value uint32)