aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/asmcode.c3
-rw-r--r--src/unalf.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/asmcode.c b/src/asmcode.c
index af7f1d6..bee7752 100644
--- a/src/asmcode.c
+++ b/src/asmcode.c
@@ -471,10 +471,9 @@ out_len_hi_ok:
sta(buf_len_l);
lda(outbuf_len_h);
sta(buf_len_h);
- /* TODO: call C writeblock() */
ldx_i(0x30);
jsr(writeblock);
- bpl(init_outbuf);
+ bpl(init_outbuf); /* writeblock() never sets N flag, so always branch */
chksum_err(); /* does not exit */
/* ---------------------------------------------------------------------------- */
init_outbuf:
diff --git a/src/unalf.h b/src/unalf.h
index c21944e..3c461ef 100644
--- a/src/unalf.h
+++ b/src/unalf.h
@@ -17,7 +17,7 @@
#define u16 unsigned short
#endif
-/* converted from asm */
+/* asmcode.c (converted from asm) */
void uncrunch_file(void);
void setup_io_bufs(void);
void L7A19(void);