mirror of
https://github.com/pret/pokeheartgold.git
synced 2026-04-24 23:09:22 -05:00
- 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
30 lines
641 B
C
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
|