package
0.0.0-20190228002135-f173d610a4ac
Repository: https://github.com/nwidger/nintengo.git
Documentation: pkg.go.dev

# README

m65go2

GoDoc

A MOS 6502 simulator written in Go

# Functions

Returns a pointer to a new BasicMemory with all memory initialized to zero.
Returns a new, empty InstructionTable.
Returns a pointer to a new CPU with the given Memory.
Creates a new set of Registers.
Returns true iff the two addresses are located in the same page in memory.

# Constants

break command.
carry flag.
decimal mode.
interrupt disable.
negative flag.
-UNUSED-.
overflow flag.
zero flag.

# Structs

Represents the 6502 CPU's memory using a static array of uint8's.
Represents an instruction for the 6502 CPU.
Stores instructions understood by the 6502 CPU, indexed by opcode.
Represents the 6502 CPU.
The 6502's registers, all registers are 8-bit values except for PC which is 16-bits.

# Interfaces

Represents the RAM memory available to the 6502 CPU.

# Type aliases

Error type used to indicate that the CPU attempted to execute an invalid opcode.
Error type used to indicate that the CPU executed a BRK instruction.
go:generate stringer -type=Index.
Represents opcodes for the 6502 CPU.
Flags used by P (Status) register.