diff options
| author | bouyer <bouyer@NetBSD.org> | 2000-10-23 14:51:51 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2000-10-23 14:51:51 +0000 |
| commit | 3b7321e1c0fd8ecfe21fb851c82290284c0e4240 (patch) | |
| tree | fa5f777a7d9c953ecac1372671da7e4d6a37ac1d /sys/dev/microcode | |
| parent | fa3aaf6d8bfdda8fa045035663cb9310985c751b (diff) | |
Allow conditionnal branch like "JUMP foo, IF FALSE"
The branch will never be taken as is, but the driver can patch the script.
Diffstat (limited to 'sys/dev/microcode')
| -rw-r--r-- | sys/dev/microcode/siop/ncr53cxxx.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/microcode/siop/ncr53cxxx.c b/sys/dev/microcode/siop/ncr53cxxx.c index 8c2c788a242..edd82697b7c 100644 --- a/sys/dev/microcode/siop/ncr53cxxx.c +++ b/sys/dev/microcode/siop/ncr53cxxx.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr53cxxx.c,v 1.4 2000/10/18 16:05:23 bouyer Exp $ */ +/* $NetBSD: ncr53cxxx.c,v 1.5 2000/10/23 14:51:51 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.4 2000/10/18 16:05:23 bouyer Exp $\t*/\n"); + fprintf(outfp, "/*\t$NetBSD: ncr53cxxx.c,v 1.5 2000/10/23 14:51:51 bouyer Exp $\t*/\n"); fprintf(outfp, "/*\n"); fprintf(outfp, " *\tDO NOT EDIT - this file is automatically generated.\n"); time(&cur_time); @@ -1134,7 +1134,12 @@ void transfer (int word0, int type) store_inst (); return; } - if (reserved ("not", ++i)) + i++; + if (reserved("false", i)) { + store_inst (); + return; + } + if (reserved ("not", i)) ++i; else inst0 |= 0x00080000; |
