Documentation ¶
Index ¶
- Constants
- type CPU
- func (c *CPU) Pop() uint8
- func (c *CPU) PopAddress() uint16
- func (c *CPU) PopStatusRegister()
- func (c *CPU) Push(v uint8)
- func (c *CPU) PushAddress(val uint16)
- func (c *CPU) PushStatusRegister()
- func (c *CPU) Reset()
- func (c *CPU) Run() int
- func (c *CPU) SetPPU(ppu *ppu.PPU)
- func (c *CPU) SetPRGROM(progROM []byte)
- func (c *CPU) SetZN(val uint8)
- type Registers
Constants ¶
View Source
const ( NONE NMI RESET IRQ BRK )
Interrupt type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPU ¶
func (*CPU) PopAddress ¶
func (*CPU) PopStatusRegister ¶
func (c *CPU) PopStatusRegister()
func (*CPU) PushAddress ¶
func (*CPU) PushStatusRegister ¶
func (c *CPU) PushStatusRegister()
type Registers ¶
type Registers struct { A byte // アキュムレーター X byte // インデックスレジスタ Y byte // インデックスレジスタ S byte // スタックポインタレジスタ スタックポインタは0x01|S P statusRegister // ステータスレジスタ 上位8bitは0x01で固定 7:N 6:V 5:R=1 4:B 3:D 2:I 1:Z 0:C PC uint16 // プログラムカウンタ }
レジスタ内容に関しては http://hp.vector.co.jp/authors/VA042397/nes/6502.html を参照
func NewRegisters ¶
func NewRegisters() *Registers
Click to show internal directories.
Click to hide internal directories.