aboutsummaryrefslogtreecommitdiff
path: root/sim/rx/reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/rx/reg.c')
-rw-r--r--sim/rx/reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/rx/reg.c b/sim/rx/reg.c
index 0fbd4c3..6effe4b 100644
--- a/sim/rx/reg.c
+++ b/sim/rx/reg.c
@@ -253,7 +253,7 @@ put_reg (int id, unsigned int v)
}
default:
- if (id >= 1 || id <= 15)
+ if (id >= 1 && id <= 15)
regs.r[id] = v;
else
abort ();