Use ptrdiff_t for pointer arithmetic results
Recent Commits to Musashi:master
-
Use ptrdiff_t for pointer arithmetic results
-
Add a TRAP callback
Add a TRAP callback Add a TRAP callback that allows interception & replacement of TRAP instructions, so Musashi can be used for OS emulation.
-
Wrap m68kconf.h option #defines in #ifdef/#endif
Wrap m68kconf.h option #defines in #ifdef/#endif Right now, users of Musashi generally need to incorporate it into their code, rather than just reference it, because it’s necessary to supply a custom `m68kconf.h` file for each use. By wrapping the preprocessor macros to control the options in `#ifdef` and `#endif`, these options can also be controlled without having to edit `m68kconf.h` while still having reasonable defaults.
-
Prefix preprocessor macros with M68K_
Prefix preprocessor macros with M68K_ Add prefixes to these preprocessor macros, so they’re properly namespaced like the rest of the preprocessor macros are: - `M68K_OPT_ON` - `M68K_OPT_OFF` - `M68K_OPT_SPECIFY_HANDLER` - `M68K_ARRAY_LENGTH` The `TRUE` and `FALSE` macros are kept as-is because they're so common in C codebases and they're already properly protected from redefinition.