Skip to content

Commit 4402637

Browse files
Doxygen pretty much everything
1 parent 3835f0d commit 4402637

File tree

9 files changed

+1406
-1122
lines changed

9 files changed

+1406
-1122
lines changed

CEdev/include/lib/ce/debug.h

+24-69
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,77 @@
11
/**
2-
* @file C DEBUGGING LIBRARY
3-
* @version 3
4-
*
5-
* @section LICENSE
6-
*
7-
* Copyright (c) 2016
8-
* Matthew "MateoConLechuga" Waltz
9-
* All rights reserved.
10-
*
11-
* Redistribution and use in source and binary forms, with or without
12-
* modification, are permitted provided that the following conditions are met:
13-
*
14-
* * Redistributions of source code must retain the above copyright notice, this
15-
* list of conditions and the following disclaimer.
16-
*
17-
* * Redistributions in binary form must reproduce the above copyright notice,
18-
* this list of conditions and the following disclaimer in the documentation
19-
* and/or other materials provided with the distribution.
20-
*
21-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31-
*
32-
* @section DESCRIPTION
33-
*
34-
* This library implements some some useful debugging functions
2+
* @file
3+
* @author Matt "MateoConLechuga" Waltz
4+
* @brief Contains useful debugging features for use with the integrated CEmu debugger
355
*/
366

377
/**
38-
* @brief Use dbg_sprintf(dbgout, const char*, ...); to print to the emulator console. See the syntax for 'printf' for more information
8+
* @fn void dbg_sprintf(out, const char*, ...)
9+
* @brief Use to print to the emulator console. See the syntax for 'printf' for more information
3910
* @param out can be dbgout (black) or dbgerr (red)
40-
*
41-
* void dbg_sprintf(out, const char*, ...);
4211
*/
4312

4413
/**
14+
* @fn void dbg_Debugger(void);
4515
* @brief Opens the debugger
46-
*
47-
* void dbg_Debugger(void);
4816
*/
4917

5018
/**
51-
* @brief Sets a breakpoint at a particualr address in an emulator
19+
* @fn void dbg_SetBreakpoint(void *address)
20+
* @brief Sets a breakpoint at a particular address in an emulator
5221
* @param address is the address of the breakpoint to set
53-
*
54-
* void dbg_SetBreakpoint(void *address);
5522
*/
5623

5724
/**
58-
* @brief Removes a breakpoint at a particualr address in an emulator
25+
* @fn void dbg_RemoveBreakpoint(void *address)
26+
* @brief Removes a breakpoint at a particular address in an emulator
5927
* @param address is the address of the breakpoint to remove
60-
*
61-
* void dbg_RemoveBreakpoint(void *address);
6228
*/
6329

6430
/**
65-
* @brief Sets a non-breaking watchpoint at a particualr address in an emulator
31+
* @fn void dbg_SetWatchpoint(void *address, unsigned length)
32+
* @brief Sets a non-breaking watchpoint at a particular address in an emulator
6633
* @param address is the address of the watchpoint to set
6734
* @param length is the size of the data at the address (values 1-4)
68-
*
69-
* void dbg_SetWatchpoint(void *address, unsigned length);
7035
*/
7136

7237
/**
73-
* @brief Sets a read watchpoint at a particualr address in an emulator
38+
* @fn void dbg_SetReadWatchpoint(void *address, unsigned length)
39+
* @brief Sets a read watchpoint at a particular address in an emulator
7440
* @param address is the address of the watchpoint to set
7541
* @param length is the size of the data at the address (values 1-4)
76-
*
77-
* void dbg_SetReadWatchpoint(void *address, unsigned length);
7842
*/
7943

8044
/**
81-
* @brief Sets a write watchpoint at a particualr address in an emulator
45+
* @fn void dbg_SetWriteWatchpoint(void *address, unsigned length)
46+
* @brief Sets a write watchpoint at a particular address in an emulator
8247
* @param address is the address of the watchpoint to set
8348
* @param length is the size of the data at the address (values 1-4)
84-
*
85-
* void dbg_SetWriteWatchpoint(void *address, unsigned length);
8649
*/
8750

8851
/**
89-
* @brief Sets a read and write watchpoint at a particualr address in an emulator
52+
* @fn void dbg_SetReadWriteWatchpoint(void *address, unsigned length)
53+
* @brief Sets a read and write watchpoint at a particular address in an emulator
9054
* @param address is the address of the watchpoint to set
9155
* @param length is the size of the data at the address (values 1-4)
92-
*
93-
* void dbg_SetReadWriteWatchpoint(void *address, unsigned length);
9456
*/
9557

9658
/**
97-
* @brief Removes a watchpoint at a particualr address in an emulator
59+
* @fn void dbg_RemoveWatchpoint(void *address)
60+
* @brief Removes a watchpoint at a particular address in an emulator
9861
* @param address is the address of the watchpoint to remove
99-
*
100-
* void dbg_RemoveWatchpoint(void *address);
10162
*/
10263

10364
/**
65+
* @fn void dbg_RemoveAllBreakpoints(void)
10466
* @brief Removes all breakpoints in an emulator
105-
*
106-
* void dbg_RemoveAllBreakpoints(void);
10767
*/
10868

10969
/**
70+
* @fn void dbg_RemoveAllWatchpoints(void)
11071
* @brief Removes all watchpoints in an emulator
111-
*
112-
* void dbg_RemoveAllWatchpoints(void);
11372
*/
11473

115-
/**
116-
* Preprocessor definitions (should not be looked at :P)
117-
*/
74+
/* Preprocessor definitions (should not be looked at :P) */
11875
#ifdef dbg_Debugger
11976
#undef dbg_Debugger
12077
#endif
@@ -197,9 +154,7 @@
197154
#define dbgerr (NULL)
198155
#endif
199156

200-
/**
201-
* simple function prototypes (should not ever be used or even looked at)
202-
*/
157+
/* simple function prototypes (should not ever be used or even looked at) */
203158
void SetBreakpoint(void *address);
204159
void RemoveBreakpoint(void *address);
205160
void SetWatchpoint(void *address, unsigned length);

CEdev/include/lib/ce/decompress.h

+12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1+
/**
2+
* @file
3+
* @author Matt "MateoConLechuga" Waltz
4+
* @brief Optimized decompression routines
5+
*/
6+
17
#ifndef DECOMPRESS_H
28
#define DECOMPRESS_H
39

410
/**
511
* Decompress a block of zx7 encoded data
12+
*
13+
* @param src Pointer to compressed source block
14+
* @param dst Pointer to destination block
615
*/
716
void dzx7_Standard(void *src, void *dst);
817

918
/**
1019
* Decompress a block of zx7 encoded data fast
20+
*
21+
* @param src Pointer to compressed source block
22+
* @param dst Pointer to destination block
1123
*/
1224
void dzx7_Turbo(void *src, void *dst);
1325

0 commit comments

Comments
 (0)