pokeheartgold/tools/elfcoder/asmwriter.h
taxicat1 008118b6b3 Address review comments
- all local vars to camelcase
- header include guards with lib name
- comments for preprocessor directives
- asm defs back to respective .inc files
- /lib/dsprot/tools/ merged to /tools/
- unprefixed globals prefixed
- sdk defs consolidated to sdk include
- lsf lib split to objects
2025-11-09 02:59:34 -05:00

30 lines
641 B
C

#ifndef ASMWRITER_H
#define ASMWRITER_H
#include <stdint.h>
#include "encoder.h"
#define ASM_COMMON_INCLUDE "asm_macro.inc"
#define DEFAULT_ADDED_PREFIX "RunEncrypted_"
typedef struct {
char *output_fname;
char **symbols;
char *wrapper_prefix;
char *replace_prefix;
char *garbage;
int *symbol_sizes;
int key_mode;
uint32_t key;
int valid;
} ASMWriter_Ctx;
void ASMWriter_Init(ASMWriter_Ctx *asmw, EncodingTask *task);
void ASMWriter_SetSymbolSize(ASMWriter_Ctx *asmw, char *symbol_name, int size);
void ASMWriter_SetInvalid(ASMWriter_Ctx *asmw);
int ASMWriter_Finalize(ASMWriter_Ctx *asmw);
#endif