aboutsummaryrefslogtreecommitdiff
path: root/emu.c
diff options
context:
space:
mode:
Diffstat (limited to 'emu.c')
-rw-r--r--emu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/emu.c b/emu.c
index 5920ff7..1d363ca 100644
--- a/emu.c
+++ b/emu.c
@@ -75,7 +75,8 @@ void (*extop[nExt])(unsigned short *a) = {
void
ext(unsigned short *a, unsigned short *b)
{
- extop[*a](b);
+ if (*a < nExt)
+ extop[*a](b);
}
void