memory

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2021 License: Zlib Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address uint32

func NewAddress

func NewAddress(seg, offset uint16) Address

func (Address) AddInt

func (a Address) AddInt(i int) Address

func (Address) Offset

func (a Address) Offset() uint16

func (Address) Pointer

func (a Address) Pointer() Pointer

func (Address) Segment

func (a Address) Segment() uint16

func (Address) String

func (a Address) String() string

type DummyIO

type DummyIO struct{}

func (*DummyIO) In

func (m *DummyIO) In(port uint16) byte

func (*DummyIO) Out

func (m *DummyIO) Out(port uint16, data byte)

type DummyMemory

type DummyMemory struct{}

func (*DummyMemory) ReadByte

func (m *DummyMemory) ReadByte(addr Pointer) byte

func (*DummyMemory) WriteByte

func (m *DummyMemory) WriteByte(addr Pointer, data byte)

type IO

type IO interface {
	In(port uint16) byte
	Out(port uint16, data byte)
}

type Memory

type Memory interface {
	ReadByte(addr Pointer) byte
	WriteByte(addr Pointer, data byte)
}

type Pointer

type Pointer uint32

func NewPointer

func NewPointer(seg, offset uint16) Pointer

func (Pointer) String

func (p Pointer) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL