-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathindex.ts
99 lines (99 loc) · 2.55 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// Public Exports
export { config, hasCoreStarted, saveState, loadState, isGBC } from './core';
export {
getStepsPerStepSet,
getStepSets,
getSteps,
executeMultipleFrames,
executeFrame,
executeFrameAndCheckAudio,
executeUntilCondition,
executeStep
} from './execute';
export { getCyclesPerCycleSet, getCycleSets, getCycles } from './cycles';
export { setJoypadState } from './joypad/joypad';
export { getNumberOfSamplesInAudioBuffer, clearAudioBuffer } from './sound/sound';
export { setManualColorizationPalette } from './graphics/colors';
export {
WASMBOY_MEMORY_LOCATION,
WASMBOY_MEMORY_SIZE,
WASMBOY_WASM_PAGES,
ASSEMBLYSCRIPT_MEMORY_LOCATION,
ASSEMBLYSCRIPT_MEMORY_SIZE,
WASMBOY_STATE_LOCATION,
WASMBOY_STATE_SIZE,
GAMEBOY_INTERNAL_MEMORY_LOCATION,
GAMEBOY_INTERNAL_MEMORY_SIZE,
VIDEO_RAM_LOCATION,
VIDEO_RAM_SIZE,
WORK_RAM_LOCATION,
WORK_RAM_SIZE,
OTHER_GAMEBOY_INTERNAL_MEMORY_LOCATION,
OTHER_GAMEBOY_INTERNAL_MEMORY_SIZE,
GRAPHICS_OUTPUT_LOCATION,
GRAPHICS_OUTPUT_SIZE,
GBC_PALETTE_LOCATION,
GBC_PALETTE_SIZE,
BG_PRIORITY_MAP_LOCATION,
BG_PRIORITY_MAP_SIZE,
FRAME_LOCATION,
FRAME_SIZE,
BACKGROUND_MAP_LOCATION,
BACKGROUND_MAP_SIZE,
TILE_DATA_LOCATION,
TILE_DATA_SIZE,
OAM_TILES_LOCATION,
OAM_TILES_SIZE,
AUDIO_BUFFER_LOCATION,
AUDIO_BUFFER_SIZE,
CHANNEL_1_BUFFER_LOCATION,
CHANNEL_1_BUFFER_SIZE,
CHANNEL_2_BUFFER_LOCATION,
CHANNEL_2_BUFFER_SIZE,
CHANNEL_3_BUFFER_LOCATION,
CHANNEL_3_BUFFER_SIZE,
CHANNEL_4_BUFFER_LOCATION,
CHANNEL_4_BUFFER_SIZE,
CARTRIDGE_RAM_LOCATION,
CARTRIDGE_RAM_SIZE,
BOOT_ROM_LOCATION,
BOOT_ROM_SIZE,
CARTRIDGE_ROM_LOCATION,
CARTRIDGE_ROM_SIZE,
DEBUG_GAMEBOY_MEMORY_LOCATION,
DEBUG_GAMEBOY_MEMORY_SIZE
} from './constants';
export { getWasmBoyOffsetFromGameBoyOffset } from './memory/memoryMap';
export {
setProgramCounterBreakpoint,
resetProgramCounterBreakpoint,
setReadGbMemoryBreakpoint,
resetReadGbMemoryBreakpoint,
setWriteGbMemoryBreakpoint,
resetWriteGbMemoryBreakpoint
} from './debug/breakpoints';
export {
getRegisterA,
getRegisterB,
getRegisterC,
getRegisterD,
getRegisterE,
getRegisterH,
getRegisterL,
getRegisterF,
getProgramCounter,
getStackPointer,
getOpcodeAtProgramCounter
} from './debug/debug-cpu';
export {
getLY,
getScrollX,
getScrollY,
getWindowX,
getWindowY,
drawBackgroundMapToWasmMemory,
drawTileDataToWasmMemory,
drawOamToWasmMemory
} from './debug/debug-graphics';
export { getDIV, getTIMA, getTMA, getTAC } from './debug/debug-timer';
export { updateDebugGBMemory } from './debug/debug-memory';