Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseMAMEPlatform

Hierarchy

Index

Constructors

constructor

  • Parameters

    • mainElement: any

    Returns BaseMAMEPlatform

Properties

initluavars

initluavars: boolean = false

js_lua_string

js_lua_string: any

loaded

loaded: boolean = false

luadebugscript

luadebugscript: string

mainElement

mainElement: HTMLElement

onBreakpointHit

onBreakpointHit: any

preinitted

preinitted: boolean = false

romdata

romdata: Uint8Array

romfn

romfn: string

romtype

romtype: string = 'cart'

running

running: boolean = false

started

started: boolean = false

timer

video

video: any

Methods

_pause

  • _pause(): void
  • Returns void

_resume

  • _resume(): void
  • Returns void

bufferConsoleOutput

  • bufferConsoleOutput(s: any): void
  • Parameters

    • s: any

    Returns void

clearDebug

  • clearDebug(): void
  • Returns void

Abstract cpuStateToLongString

  • cpuStateToLongString(c: any): string
  • Parameters

    • c: any

    Returns string

debugcmd

  • debugcmd(s: any): void
  • Parameters

    • s: any

    Returns void

getCPUReg

  • getCPUReg(reg: string): number
  • Parameters

    • reg: string

    Returns number

Abstract getCPUState

  • getCPUState(): any
  • Returns any

getDebugCallback

  • getDebugCallback(): any
  • Returns any

getDebugCategories

  • getDebugCategories(): string[]
  • Returns string[]

getDebugInfo

  • getDebugInfo(category: string, state: EmuState): string
  • Parameters

    Returns string

getDebugTree

  • getDebugTree(): { devices: any; images: any; regions: any }
  • Returns { devices: any; images: any; regions: any }

    • devices: any
    • images: any
    • regions: any

grabState

  • grabState(expr: string): { buf: string; c: any }
  • Parameters

    • expr: string

    Returns { buf: string; c: any }

    • buf: string
    • c: any

initlua

  • initlua(): void
  • Returns void

isRunning

  • isRunning(): boolean
  • Returns boolean

loadROMFile

  • loadROMFile(data: any): void
  • Parameters

    • data: any

    Returns void

loadRegion

  • loadRegion(region: any, data: any): void
  • Parameters

    • region: any
    • data: any

    Returns void

loadState

  • loadState(state: any): string
  • Parameters

    • state: any

    Returns string

luacall

  • luacall(s: string): string
  • Parameters

    • s: string

    Returns string

pause

  • pause(): void
  • Returns void

poll

  • poll(): void
  • Returns void

readAddress

  • readAddress(a: number): number
  • Parameters

    • a: number

    Returns number

reset

  • reset(): void
  • Returns void

resume

  • resume(): void
  • Returns void

runEval

  • runEval(): void
  • Returns void

runToPC

  • runToPC(pc: any): void
  • Parameters

    • pc: any

    Returns void

runToVsync

  • runToVsync(): void
  • Returns void

runUntilReturn

  • runUntilReturn(): void
  • Returns void

saveState

  • saveState(): { buf: string; c: any }
  • Returns { buf: string; c: any }

    • buf: string
    • c: any

setupDebug

  • setupDebug(callback: any): void
  • Parameters

    • callback: any

    Returns void

startModule

  • startModule(mainElement: any, opts: any): void
  • Parameters

    • mainElement: any
    • opts: any

    Returns void

step

  • step(): void
  • Returns void

Generated using TypeDoc