| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Nes.Rom
Contents
Synopsis
- data Rom
- prgRom :: Rom -> ByteString
- chrRom :: Rom -> ByteString
- mapper :: Rom -> Byte
- mirroring :: Rom -> Mirroring
- data Mirroring
- fromFile :: FilePath -> IO (Either RomParsingError Rom)
- fromByteString :: ByteString -> Either RomParsingError Rom
- type RomParsingError = String
- unsafeEmptyRom :: Rom
Data type
prgRom :: Rom -> ByteString Source #
The portion of the ROM that's connected to the CPU
chrRom :: Rom -> ByteString Source #
The portion of the ROM that's connected to the PPU
Constructors
| Vertical | |
| Horizontal | |
| FourScreen |
Parsing a Rom
type RomParsingError = String Source #
Internal
unsafeEmptyRom :: Rom Source #
For testing purposes, do not use