Documentation
¶
Index ¶
- Constants
- func ParseHeader(buf []byte) (title string, cgb, cartType, romSize, ramSize byte, ok bool)
- type GB
- func (g *GB) ClearRAM(cartType, ramSize byte) (size uint32, err error)
- func (g *GB) DetectGBM() error
- func (g *GB) DumpRAM(w io.Writer, cartType, ramSize byte) (size uint32, err error)
- func (g *GB) DumpROM(w io.Writer, cartType, romSize byte) (checkSum uint32, err error)
- func (g *GB) IsSupportedFlash() (device uint16, err error)
- func (g *GB) MapEntireROM() error
- func (g *GB) Read128(offset uint32) error
- func (g *GB) ReadFull(offset uint32) error
- func (g *GB) ReadMappingGBM(w io.Writer) ([]byte, error)
- func (g *GB) WriteFlash(device uint16, addr int, buf []byte) error
- func (g *GB) WriteRegByte(addr uint32, data int) error
- type Index
- type Message
- type Request
Constants ¶
View Source
const ( GBM_MENU_TITLE = "NP M-MENU MENU" GBM_ENTIRE_MBC = 0x1B // as MBC5 + RAM + battery GBM_ENTIRE_ROM_SIZE = 5 // 2<<5 = 64banks -> 64*16 = 1024KB GBM_ENTIRE_RAM_SIZE = 3 // 4banks -> 4* 8 = 32KB )
View Source
const ( CMD_BANK = 0x99 CMD_01h_UNKNOWN = 0x01 // ??? CMD_0Ah_WRITE_ENABLE_STEP_1 = 0x0A CMD_02h_WRITE_ENABLE_STEP_2 = 0x02 CMD_03h_UNDO_WRITE_STEP_2 = 0x03 CMD_04h_MAP_ENTIRE_ROM = 0x04 // MBC4 mode CMD_05h_MAP_MENU = 0x05 // MBC5 mode CMD_09h_WAKEUP_AND_RE_ENABLE_FLASH_REGS = 0x09 // regs at 0120h..013Fh CMD_08h_DISABLE_FLASH_REGS = 0x08 CMD_11h_RE_ENABLE_MBC_REGS = 0x11 // regs at 2100h CMD_10h_DISABLE_MBC_REGS = 0x10 CMD_0Fh_WRITE_TO_FLASH = 0x0f CMD_C0h_MAP_SELECTED_GAME_WITHOUT_RESET = 0xc0 )
View Source
const PACKET_SIZE = 0x400
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GB ¶
type GB struct {
Buf []uint8
// contains filtered or unexported fields
}
func NewGB ¶
func NewGB(s io.ReadWriter) *GB
func (*GB) IsSupportedFlash ¶
func (*GB) MapEntireROM ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
dlzss
command
|
|
|
gbheader
command
|
|
|
hex2bin
command
|
|
|
interleaveMD
command
|
|
|
lsips
command
|
|
|
mix8BITCHR
command
|
|
|
mix8BITPRG
command
|
|
|
snessum
command
|
|
|
tuna
command
|
|
|
tunaa
command
|
|
|
tunag
command
|
Click to show internal directories.
Click to hide internal directories.