From dcc251bf35c82427eb0f4233940c3ea5629d3e92 Mon Sep 17 00:00:00 2001 From: Nathan Misner Date: Mon, 1 Jan 2024 09:17:35 -0600 Subject: [PATCH] fixed compiler warnings and typo in documentation --- a65.c | 3 +-- a65.html | 4 ++-- a65eval.c | 1 + a65util.c | 2 -- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/a65.c b/a65.c index a0e8c1a..e09e323 100644 --- a/a65.c +++ b/a65.c @@ -349,10 +349,9 @@ static char date_buff[80]; static void pseudo_op() { SCRATCH char *s; - SCRATCH unsigned count, *o, result, u; + SCRATCH unsigned count, *o, u; SCRATCH SYMBOL *l; FILE *binfp; - size_t size; o = obj; switch (opcod -> valu) { diff --git a/a65.html b/a65.html index 80db1c4..cea141b 100644 --- a/a65.html +++ b/a65.html @@ -17,7 +17,7 @@ pre code { background-color: #eee; border: 1px solid #999; display: block; - padding: 20px; + padding: 10px 20px; } @@ -333,7 +333,7 @@ would generate this export file:
; Autogenerated export file - do not modify!
 
 InfiniteLoop      equ      $6500
-

The EXP pseudo-op will throw a fatal error if tno export file was specified (otherwise +

The EXP pseudo-op will throw a fatal error if no export file was specified (otherwise this could mess up your build process).

Pseudo-ops -- IF, ELSE, ENDI

diff --git a/a65eval.c b/a65eval.c index 7a7a1c1..b3c0de1 100644 --- a/a65eval.c +++ b/a65eval.c @@ -11,6 +11,7 @@ arithmetic expressions. */ #include +#include /* Get global goodies: */ diff --git a/a65util.c b/a65util.c index 204e8f4..7dfbfd8 100644 --- a/a65util.c +++ b/a65util.c @@ -54,7 +54,6 @@ static void record(); SYMBOL *new_symbol(char *nam) { SCRATCH int i; SCRATCH SYMBOL **p, *q; - void fatal_error(); for (p = &sroot; (q = *p) && (i = strcmp(nam,q -> sname)); ) p = i < 0 ? &(q -> left) : &(q -> right); @@ -348,7 +347,6 @@ static void check_page() { static FILE *outfile = NULL; static unsigned cnt = 0; static unsigned addr = 0; -static unsigned bbase = 0; static uint8_t buf[HEXSIZE]; /* Binary file open routine. If the file is already open, a warning */ -- 2.45.2