SGDK - A free and open development kit for the Sega Mega Drive
c
programming
sdk
assembly
gcc
sega
mega-drive
megadrive
sega-mega-drive
sega-genesis
68000
sgdk
retrodev
sgdk-library
-
Updated
Mar 26, 2021 - C
Macros are used extensively within the code, especially in the emulator interface (memory access). The way they're used rarely follows best practice, looks messy, and confuses the way the code works. Furthermore, they're large and hard to follow.
At the very least the access-check functions should be reimplemented as static inline functions -- other macros should be reviewed.