mkw icon indicating copy to clipboard operation
mkw copied to clipboard

Autogenerate data in C sources when creating slices

Open em-eight opened this issue 2 years ago • 1 comments

Saves us time from modifying the slices and regenerating assembly every time new data is referenced in C code. Will also probably make matching data quick, easier and more beginner friendly.

Doing that requires:

  • Adding data definitions in CAsmGenerator corresponding to the data slices
  • Referring to those definitions in inline assembly

Project that supports this: https://github.com/SeekyCt/spm-decomp/blob/9a91c42d748a4c9a8a1e8199e5a4d8f36792679b/src/windowdrv.c#L25

em-eight avatar Aug 09 '22 22:08 em-eight

Just to clarify, that actual c's not auto-generated yet, only the includes it uses

SeekyCt avatar Aug 09 '22 22:08 SeekyCt