diff options
| author | bouyer <bouyer@NetBSD.org> | 2000-10-18 16:05:23 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2000-10-18 16:05:23 +0000 |
| commit | 8ec46d1679336b3380caa47c2e56e67879052be2 (patch) | |
| tree | 66cd1fbec5be57d5493902278179d2baca07e826 /sys/dev/microcode | |
| parent | 6ec737498aa18d26d74e7124f40c72dbc87936c4 (diff) | |
Fix off by one error when using RETURN, WHEN/IF ...
Diffstat (limited to 'sys/dev/microcode')
| -rw-r--r-- | sys/dev/microcode/siop/ncr53cxxx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/microcode/siop/ncr53cxxx.c b/sys/dev/microcode/siop/ncr53cxxx.c index 67f7fea8b65..8c2c788a242 100644 --- a/sys/dev/microcode/siop/ncr53cxxx.c +++ b/sys/dev/microcode/siop/ncr53cxxx.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr53cxxx.c,v 1.3 2000/10/09 15:57:56 bouyer Exp $ */ +/* $NetBSD: ncr53cxxx.c,v 1.4 2000/10/18 16:05:23 bouyer Exp $ */ /* * Copyright (c) 1995,1999 Michael L. Hitch @@ -415,7 +415,7 @@ main (int argc, char *argv[]) if (outfp) { time_t cur_time; - fprintf(outfp, "/*\t$NetBSD: ncr53cxxx.c,v 1.3 2000/10/09 15:57:56 bouyer Exp $\t*/\n"); + fprintf(outfp, "/*\t$NetBSD: ncr53cxxx.c,v 1.4 2000/10/18 16:05:23 bouyer Exp $\t*/\n"); fprintf(outfp, "/*\n"); fprintf(outfp, " *\tDO NOT EDIT - this file is automatically generated.\n"); time(&cur_time); @@ -1111,13 +1111,13 @@ void transfer (int word0, int type) inst0 = word0; if (type == 0 && reserved ("rel", i)) { inst1 = evaluate (i + 2) - dsps - 8; - i += 3; + i += 4; inst0 |= 0x00800000; } else if (type != 1) { inst1 = evaluate (i); + ++i; } - ++i; if (i >= ntokens) { inst0 |= 0x00080000; store_inst (); |
