gbc

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2018 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

View Source
const FRAME_CYCLES = 70224
View Source
const TITLE string = "gomeboycolor"

Variables

View Source
var BOOTROM []byte = []byte{}/* 256 elements not displayed */
View Source
var VERSION string

Functions

func SpritesToImage

func SpritesToImage(sprites [40][8][8]types.RGB, w, h int) (*image.NRGBA, error)

IMAGE DUMP FUNCTIONS - SLOPPY CODE!!!!

func TilemapToImage

func TilemapToImage(img [256][256]types.RGB, caption string) (*image.NRGBA, error)

func TilesToImage

func TilesToImage(tiles [512][8][8]types.RGB, w, h int) (*image.NRGBA, error)

func ToMemoryAddress

func ToMemoryAddress(s string) (types.Word, error)

Types

type DebugCommandHandler

type DebugCommandHandler func(*GomeboyColor, ...string)

type DebugOptions

type DebugOptions struct {
	// contains filtered or unexported fields
}

func (*DebugOptions) AddDebugFunc

func (g *DebugOptions) AddDebugFunc(command string, description string, f DebugCommandHandler)

func (*DebugOptions) Init

func (g *DebugOptions) Init(cpuDumpOnStep bool)

type GomeboyColor

type GomeboyColor struct {
	// contains filtered or unexported fields
}

func Init

func Init(cart *cartridge.Cartridge, saveStore saves.Store, conf *config.Config, ioHandler inputoutput.IOHandler) (*GomeboyColor, error)

func (*GomeboyColor) Reset

func (gbc *GomeboyColor) Reset()

func (*GomeboyColor) Run

func (gbc *GomeboyColor) Run(frameRunnerWrapper func(func()))

func (*GomeboyColor) RunIO

func (gbc *GomeboyColor) RunIO()

func (*GomeboyColor) Step

func (gbc *GomeboyColor) Step()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL