funes-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Nes.PPU.State

Synopsis

State

Address Register

addressRegisterGet :: AddressRegister -> Addr Source #

Get the AddressRegister's value as an Addr

addressRegisterSet :: Addr -> AddressRegister -> AddressRegister Source #

Sets an Addr to the AddressRegister's value

addressRegisterIncrement :: Byte -> AddressRegister -> AddressRegister Source #

Increment the AddressRegister's value by the given Byte

addressRegisterUpdate :: Byte -> AddressRegister -> AddressRegister Source #

Sets the high or lower byte of the AddressRegister's value, depending on the highPtr state

Control Register

data ControlRegisterFlag Source #

Flags from the control register

7 bit 0 ---- ---- VPHB SINN |||| |||| |||| ||++- Base nametable address |||| || (0 = $2000; 1 = $2400; 2 = $2800; 3 = $2C00) |||| |+--- VRAM address increment per CPU read/write of PPUDATA |||| | (0: add 1, going across; 1: add 32, going down) |||| +---- Sprite pattern table address for 8x8 sprites |||| (0: $0000; 1: $1000; ignored in 8x16 mode) |||+------ Background pattern table address (0: $0000; 1: $1000) ||+------- Sprite size (0: 8x8 pixels; 1: 8x16 pixels) |+-------- PPU master/slave select | (0: read backdrop from EXT pins; 1: output color on EXT pins) +--------- Generate an NMI at the start of the vertical blanking interval (0: off; 1: on)

SRC: https://bugzmanov.github.io/nes_ebook/chapter_6_1.html

Status Register

newtype StatusRegister Source #

Constructors

MkSR 

Fields

Scroll Register

data ScrollRegister Source #

Constructors

MkScrollR 

Fields

Mask Register

newtype MaskRegister Source #

Constructors

MkMR 

Fields

Instances

Instances details
Show MaskRegister Source # 
Instance details

Defined in Nes.PPU.State

FlagRegister MaskRegister Source # 
Instance details

Defined in Nes.PPU.State

Associated Types

type Flag MaskRegister 
Instance details

Defined in Nes.PPU.State

Eq MaskRegister Source # 
Instance details

Defined in Nes.PPU.State

type Flag MaskRegister Source # 
Instance details

Defined in Nes.PPU.State

VRAM

Lenses