Mercurial > repos > blastem
diff cpu_dsl.py @ 2500:d44fe974fb85
Get blastem compiling with new 68K core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 30 Apr 2024 22:32:08 -0700 |
parents | d74d3998482c |
children | ad50530a7c27 |
line wrap: on
line diff
--- a/cpu_dsl.py Tue Apr 30 00:02:14 2024 -0700 +++ b/cpu_dsl.py Tue Apr 30 22:32:08 2024 -0700 @@ -1595,10 +1595,11 @@ macro = header.upper().replace('.', '_') hFile.write('#ifndef {0}_'.format(macro)) hFile.write('\n#define {0}_'.format(macro)) + hFile.write('\n#include <stdio.h>') hFile.write('\n#include "backend.h"') hFile.write('\n\ntypedef struct {') hFile.write('\n\tcpu_options gen;') - hFile.write('\n\tuint8_t address_log;') + hFile.write('\n\tFILE* address_log;') hFile.write('\n}} {0}options;'.format(self.prefix)) hFile.write('\n\ntypedef struct {') hFile.write('\n\t{0}options *opts;'.format(self.prefix))