aboutsummaryrefslogtreecommitdiffstats
path: root/tools/z80asm/jr.diff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/z80asm/jr.diff')
-rw-r--r--tools/z80asm/jr.diff81
1 files changed, 81 insertions, 0 deletions
diff --git a/tools/z80asm/jr.diff b/tools/z80asm/jr.diff
new file mode 100644
index 0000000..f3c25b5
--- /dev/null
+++ b/tools/z80asm/jr.diff
@@ -0,0 +1,81 @@
+? z80asm
+Index: z80asm.c
+===================================================================
+RCS file: /cvsroot/z80asm/z80asm/z80asm.c,v
+retrieving revision 1.10
+diff -u -r1.10 z80asm.c
+--- z80asm.c 29 Sep 2004 13:09:48 -0000 1.10
++++ z80asm.c 1 Oct 2004 06:36:41 -0000
+@@ -525,6 +525,7 @@
+ fprintf (listfile, " %02x", b);
+ listdepth += 3;
+ }
++ addr++;
+ }
+
+ /* write byte to outfile and possibly some index things as well */
+@@ -541,7 +542,6 @@
+ indexed);
+ write_one_byte (indexed, 1);
+ indexed = 0;
+- addr++;
+ }
+ if (writebyte)
+ {
+@@ -560,7 +560,6 @@
+ else
+ {
+ write_one_byte (b, 1);
+- addr++;
+ }
+ if (indexjmp)
+ {
+@@ -1200,6 +1199,8 @@
+ firstreference->prev = tmp;
+ tmp->prev = NULL;
+ firstreference = tmp;
++ /* Dummy value which should not give warnings */
++ value = (type == TYPE_RELB) ? ds_count : 0;
+ }
+ wrt_ref (value, type, ds_count);
+ }
+@@ -1783,23 +1784,19 @@
+ return;
+ }
+ write_one_byte (val + 0xC7, 1);
+- addr++;
+ return;
+ case TYPE_ABSW:
+ write_one_byte (val & 0xff, 1);
+ write_one_byte ( (val >> 8) & 0xff, 1);
+- addr++;
+ return;
+ case TYPE_ABSB:
+ write_one_byte (val & 0xff, 1);
+- addr++;
+ return;
+ case TYPE_DS:
+ if (havelist) fprintf (listfile, " %02x...", val & 0xff);
+ while (count--)
+ {
+ write_one_byte (val & 0xff, 0);
+- addr++;
+ }
+ return;
+ case TYPE_BSR:
+@@ -1818,7 +1815,6 @@
+ printerr ("Warning: relative jump out of range (%d).\n", val);
+ }
+ write_one_byte (val & 0xff, 1);
+- addr++;
+ }
+ }
+
+@@ -2558,7 +2554,6 @@
+ for (i = 0; i < r; i++)
+ {
+ write_one_byte (0, 0);
+- ++addr;
+ }
+ break;
+ case ORG: