forked from NEO-SPECTRUMAN/SpecEmu
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Protos.inc
180 lines (143 loc) · 5.75 KB
/
Protos.inc
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
;=====================================
; Direct Input Procedures
;=====================================
DI_Init PROTO
DI_ShutDown PROTO
DI_Init_Mouse PROTO
DI_Init_Keyboard PROTO
DI_Read_Mouse PROTO
DI_Read_Keyboard PROTO
;========================================
; Timer routines
;========================================
Init_Time PROTO
Start_Time PROTO :DWORD
Wait_Time PROTO :DWORD, :DWORD
Get_Time PROTO
Delay_Time PROTO :DWORD
;=====================================
; Direct Sound Procedures
;=====================================
DS_Init PROTO
DS_ShutDown PROTO
Play_Sound PROTO :DWORD, :DWORD
Set_Sound_Volume PROTO :DWORD, :DWORD
Set_Sound_Freq PROTO :DWORD, :DWORD
Set_Sound_Pan PROTO :DWORD, :DWORD
Stop_Sound PROTO :DWORD
Stop_All_Sounds PROTO
Delete_Sound PROTO :DWORD
Delete_All_Sounds PROTO
Status_Sound PROTO :DWORD
Load_WAV PROTO :DWORD, :DWORD
Init_WAV PROTO :DWORD, :DWORD
Get_Current_Position PROTO :DWORD
Set_Current_Position PROTO :DWORD, :DWORD
Sample_AY PROTO
;=====================================
; Misc Procedures
;=====================================
UpdateDisassembly PROTO
SetPagingInfo PROTO
LoadSZXFile PROTO :DWORD
LoadSZXMemory PROTO :DWORD,:DWORD
EnableControl PROTO :DWORD,:DWORD,:DWORD
LoadMemorySnapshot PROTO :HWND
SaveMemorySnapshot PROTO :HWND
SetDirtyLines PROTO
SetDisplayTable PROTO
Z80Call_MEMPTR PROTO :WORD
Clear_Mem_Map PROTO
Save_Memory_Map PROTO
Is_CBI_Paged PROTO
Master_Tape PROTO :DWORD,:DWORD,:DWORD
zx7_compress PROTO :DWORD, :DWORD, :DWORD
CreateTapeXORMask PROTO :DWORD,:DWORD
SetAppDataPath PROTO
GetZ80TstateCount PROTO
SetZ80TstateCount PROTO :DWORD
;=====================================
; Palette Procedures
;=====================================
SetSpectrumPalette PROTO :DWORD
EditCustomPalette PROTO
SetCustomPalette PROTO
LoadCustomPalettes PROTO
SaveCustomPalettes PROTO
GetColourAsPercent PROTO :BYTE
GetPercentComponent PROTO :DWORD,:WORD
;=====================================
; ULAplus Procedures
;=====================================
InitULAplus PROTO
EnableULAplusMode PROTO :BYTE
SetULAplusState PROTO
BuildULAplusPalette PROTO
SetULAplusPaletteEntry PROTO :DWORD,:BYTE
SelectULAplusPalette PROTO :DWORD
MapAttr2RGBPercent PROTO :BYTE,:DWORD
Map_hmlhmlml PROTO :BYTE
ULAplus_ReadData PROTO
ULAplus_WriteData PROTO :BYTE
ULAplus_WriteReg PROTO :BYTE
;=====================================
; Direct Draw Procedures
;=====================================
InitDirectDraw PROTO
ShutdownDirectDraw PROTO
InitSurfaces PROTO :DWORD
FreeSurfaces PROTO
RestoreSurfaces PROTO
FlipDisplayMode PROTO
GetDesktopBPP PROTO
DumptoDXSurface PROTO
DIBToScreen PROTO :DWORD
GetSrcDIBRect PROTO :DWORD
BlitScreen PROTO :DWORD
LockBackBufferSurface PROTO
UnlockBackBufferSurface PROTO
GetSurfaceColours PROTO
ColourDump PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD
BltFlip_Mirror_Horz PROTO
BltFlip_Mirror_Vert PROTO
SetDIBDrawPosn PROTO :DWORD,:DWORD
SetDIBPaper PROTO :BYTE
SetDIBInk PROTO :BYTE
DrawDIBText PROTO :DWORD
DrawDIBChar PROTO :BYTE
;=====================================
; Input (Spectrum) Procedures
;=====================================
GetSpeccyInputStates PROTO
GetSpeccyKeyState PROTO
InitialiseJoystick PROTO :DWORD,:PTR
ResetJoystickStates PROTO
GetJoystickStates PROTO
GetStickState PROTO :DWORD,:PTR
SetShiftCtrlState PROTO
GetPausedKeyState PROTO
;=====================================
; Input Procedures
;=====================================
ClearKeyboardState PROTO
GetKeyShiftState PROTO
Special_Key_Combos PROTO
;=====================================
; x86 Code Generator Procedures
;=====================================
AllocPageTable PROTO :DWORD
FreePageTable PROTO :DWORD
FreePageTableList PROTO
CompileBreakpointCode PROTO :PTR
x86_Breakpoint PROTO
x86_SetOrigin PROTO :DWORD
x86_MemCpy PROTO :DWORD,:DWORD
x86_WriteByte PROTO :BYTE
x86_WriteWord PROTO :WORD
x86_WriteDWord PROTO :DWORD
Set_RunTo_Condition PROTO :BYTE
Set_Autotype_Rom_Point PROTO
;=====================================
; Assembler Procedures
;=====================================
Assemble_Source PROTO :LPCSTR,:DWORD