bus

package
v0.0.0-...-dfe74e1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_MEM_SIZE = 0xff_ffff + 1
View Source
const PAGE_BITS = 4 // 4 - 0x10 bytes, 8 - 0x100 bytes, 10 - 0x400 bytes, 14 - 0x4000
View Source
const PAGE_MASK = PAGE_SIZE - 1
View Source
const PAGE_SIZE = 1 << PAGE_BITS
View Source
const SEGMENTS = MAX_MEM_SIZE >> PAGE_BITS

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

type Bus struct {
	EA    uint32 // last memory access - r/w
	Write bool   // is write op?
	// contains filtered or unexported fields
}

func New

func New(name string) *Bus

func (*Bus) Attach

func (b *Bus) Attach(mode int, mem emu.Memory, fn byte, start uint32, end uint32)

func (*Bus) Read_8

func (b *Bus) Read_8(mode byte, addr uint32) byte

func (*Bus) Write_8

func (b *Bus) Write_8(mode byte, addr uint32, val byte)

Jump to

Keyboard shortcuts

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