core

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const OFFSEThRAM uint16 = 0xFF80
View Source
const OFFSETio uint16 = 0xFF00
View Source
const OFFSEToam uint16 = 0xFE00
View Source
const OFFSETsRAM uint16 = 0xA000
View Source
const OFFSETvRAM uint16 = 0x8000
View Source
const OFFSETwRAMlower uint16 = 0xC000
View Source
const OFFSETwRAMupper uint16 = 0xE000
View Source
const ROM_OFFSET_NAME = 0x0134

ROM_OFFSET_NAME is the location in every ROM of the name

View Source
const ROM_OFFSET_RAM_SIZE = 0x0149
View Source
const ROM_OFFSET_ROM_SIZE = 0x0148
View Source
const ROM_OFFSET_TYPE = 0x0147

Variables

View Source
var CPU = CPUType{
	INSTRUCTIONS: components.INSTRUCTIONS,
	REGISTERS:    &components.REGISTERS,
	DEBUG:        false,
}
View Source
var GPU = GPUType{
	// contains filtered or unexported fields
}
View Source
var ROM = ROMType{
	// contains filtered or unexported fields
}
View Source
var System = SystemType{
	CPU: CPU,
	ROM: ROM,
}

Functions

This section is empty.

Types

type CPUType

type CPUType struct {
	INSTRUCTIONS []components.InstructionType
	REGISTERS    *components.RegistersType
	DEBUG        bool
}

CPU Structure ================ ---> Instructions Array ---> Registers Structure

func (*CPUType) Reset

func (cpu *CPUType) Reset()

func (*CPUType) Run

func (cpu *CPUType) Run(debug bool)

type GPUType

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

type INTERRUPTSType

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

Interrupts

var INTERRUPTS INTERRUPTSType = INTERRUPTSType{
	// contains filtered or unexported fields
}

type ROMType

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

func (*ROMType) BuildModel added in v0.0.9

func (rom *ROMType) BuildModel()

BuildModel builds a GTK TreeModel using an instruction map

func (*ROMType) GetName added in v0.0.9

func (rom *ROMType) GetName() string

GetName gets the name of the ROM from within the ROM's file

func (*ROMType) GetRAMSize added in v0.0.9

func (rom *ROMType) GetRAMSize() int

GetRAMSize get the size of the ROM's RAM from within the ROM's file

func (*ROMType) GetROMSize added in v0.0.9

func (rom *ROMType) GetROMSize() int

GetROMSize get the size of the ROM from within the ROM's file

func (*ROMType) GetType added in v0.0.9

func (rom *ROMType) GetType() string

GetType gets the ROM Type of the ROM from within the ROM's file

type SystemType

type SystemType struct {
	CPU CPUType
	ROM ROMType
}

System Structure ================ CPU Structure ---> Instructions Array ---> Registers Structure ---> MMU Structure GPU Structure ---> Graphics Processing ---> Screen Pipeline

func (*SystemType) LoadROM

func (system *SystemType) LoadROM(location string, romListStore *gtk.ListStore,
	romTreeView *gtk.TreeView, romProgressBar *gtk.ProgressBar,
	menuDebug *gtk.MenuItem, menuRun *gtk.MenuItem)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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