Enums 6z583l

eventType 152x1r

Syntax 4o3n5

emu.eventType.[value]

Values

nmi,            Triggered when an nmi occurs
irq,            Triggered when an irq occurs
startFrame,     Triggered at the start of a frame (cycle 0, scanline 0) (SNES only)
endFrame,       Triggered at the end of a frame (cycle 0 on the NMI scanline) (SNES only)
reset,          Triggered when a soft reset occurs
scriptEnded,    Triggered when the current Lua script ends (script window closed, execution stopped, etc.)
inputPolled,    Triggered when the emulation core polls the state of the input devices for the next frame
stateLoaded,    Triggered when a  manually loads a savestate
stateSaved,     Triggered when a  manually saves a savestate
gbStartFrame,   Triggered at the start of a frame (cycle 0, scanline 0) (Game Boy only)
gbEndFrame,     Triggered at the end of a frame (cycle 0, scanline 144) (Game Boy only)

Description
Used by removeEventCallback calls.

memCallbackType n38a

Syntax

emu.memCallbackType.[value]

Values

read,     Triggered when a read instruction is executed
write,    Triggered when a write instruction is executed
exec,     Triggered when any memory read occurs due to the U's code execution

Description
Used by removeMemoryCallback calls.

memType 713z4n

Syntax

emu.memType.[value]

Values

u,              U memory - Max: $FFFFFF          Warning: Reading or writing to this memory type may cause side-effects!
spc,              SPC memory - Max: $FFFF            Warning: Reading or writing to this memory type may cause side-effects!
sa1,              SPC memory - Max: $FFFFFF          Warning: Reading or writing to this memory type may cause side-effects!
gsu,              SPC memory - Max: $FFFFFF          Warning: Reading or writing to this memory type may cause side-effects!
cx4,              SPC memory - Max: $FFFFFF          Warning: Reading or writing to this memory type may cause side-effects!
gameboy,          Game Boy memory - Max: $FFFF       Warning: Reading or writing to this memory type may cause side-effects!
cgram,            CG/Palette RAM - Max: $1FF
oam,              OAM / Sprite RAM - Max: $21F
vram,             Video RAM - Max: $FFFF
prgRom,           PRG ROM - Size varies by game
workRam,          Work RAM - Max: $1FFFF
saveRam,          Save RAM - Size varies by game
gbPrgRom,         Game Boy PRG ROM - Size varies by game
gbWorkRam,        Game Boy Work RAM - Max: $1FFF (GB) or $7FFF (GBC)
gbCartRam,        Gmae Boy Cart/Save RAM - Size varies by game
gbVideoRam,       Game Boy Video RAM - Max: $1FFF (GB) or $3FFF (GBC)
uDebug,         U memory - Max: $FFFFFF          Same as non-debug variant, but avoid side-effects.
spcDebug,         SPC memory - Max: $FFFF            Same as non-debug variant, but avoid side-effects.
sa1Debug,         SA-1 memory - Max: $FFFFFF         Same as non-debug variant, but avoid side-effects.
gsuDebug,         GSU memory - Max: $FFFFFF          Same as non-debug variant, but avoid side-effects.
cx4Debug,         CX4 memory - Max: $FFFFFF          Same as non-debug variant, but avoid side-effects.
gameboyDebug,     Game Boy memory - Max: $FFFF       Same as non-debug variant, but avoid side-effects.

Description
Used by write calls.

counterOpType 52342q

Syntax

emu.counterOpType.[value]

Values

read,
write,
exec

Description
Used by getAccessCounters calls.

stepType 502bf

Syntax

emu.stepType.[value]

Values

uInstructions,
ppuCycles

Description
Used by execute calls.

uType 582u4d

Syntax

emu.uType.[value]

Values

u,       This represents the main SNES U (S-U)
spc,
dsp,
sa1,
gsu,
cx4,
gameboy

Description
Used by MemoryCallback calls.