Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseMAME6502Platform

Hierarchy

Index

Constructors

constructor

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

_resume

  • _resume(): void

bufferConsoleOutput

  • bufferConsoleOutput(s: any): void

clearDebug

  • clearDebug(): void

cpuStateToLongString

  • cpuStateToLongString(c: any): string

debugcmd

  • debugcmd(s: any): void

disassemble

  • disassemble(pc: number, read: (addr: number) => number): DisasmLine
  • Parameters

    • pc: number
    • read: (addr: number) => number
        • (addr: number): number
        • Parameters

          • addr: number

          Returns number

    Returns DisasmLine

getCPUReg

  • getCPUReg(reg: string): number

getCPUState

  • getCPUState(): { A: number; PC: number; SP: number; X: number; Y: number; flags: number }
  • Returns { A: number; PC: number; SP: number; X: number; Y: number; flags: number }

    • A: number
    • PC: number
    • SP: number
    • X: number
    • Y: number
    • flags: number

getDebugCallback

  • getDebugCallback(): any

getDebugCategories

  • getDebugCategories(): string[]

getDebugInfo

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

getDebugTree

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

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

getPC

  • getPC(): number
  • Returns number

getSP

  • getSP(): number
  • Returns number

grabState

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

    • expr: string

    Returns { buf: string; c: any }

    • buf: string
    • c: any

initlua

  • initlua(): void

isRunning

  • isRunning(): boolean

isStable

  • isStable(): boolean
  • Returns boolean

loadROMFile

  • loadROMFile(data: any): void

loadRegion

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

    • region: any
    • data: any

    Returns void

loadState

  • loadState(state: any): string

luacall

  • luacall(s: string): string
  • Parameters

    • s: string

    Returns string

pause

  • pause(): void

poll

  • poll(): void

readAddress

  • readAddress(a: number): number

reset

  • reset(): void

resume

  • resume(): void

runEval

  • runEval(): void

runToPC

  • runToPC(pc: any): void
  • Parameters

    • pc: any

    Returns void

runToVsync

  • runToVsync(): void

runUntilReturn

  • runUntilReturn(): void

saveState

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

    • buf: string
    • c: any

setupDebug

  • setupDebug(callback: any): void

startModule

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

    • mainElement: any
    • opts: any

    Returns void

step

  • step(): void

Generated using TypeDoc