diff --git a/asm6502.c b/asm6502.c index cf9e72a..ad807b6 100644 --- a/asm6502.c +++ b/asm6502.c @@ -637,16 +637,16 @@ void emit_byte(u8 b, int pass) oc+=1; } -void emit(const char *p, int len, int pass) +void emit(const char *p, u16 len, int pass) { - int i=0; + u16 i=0; if (pass == 2) { for (i=0; i old_len) text = realloc(text, text_len); /* make space for include file: @@ -1240,7 +1240,7 @@ char *read_main(const char *fn) return buf; } -int save(const char *fn, const char *data, int len) +int save_code(const char *fn, const char *data, int len) { FILE *f = fopen(fn, "wb"); if (!f) return 0; @@ -1252,7 +1252,7 @@ int save(const char *fn, const char *data, int len) return 1; } -void dump_filenames() +void dump_filenames(void) { int i; for (i=0; i