aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2012-04-25 10:49:55 +0000
committerDimitri Sokolyuk <demon@dim13.org>2012-04-25 10:49:55 +0000
commit4b59f442f5163de0956d93b7528fec8266939999 (patch)
tree2de2fdcebe4d25b01deaee96030f80b2df802b7c
parent4129f029e4c47033dc82ea82b70e9d4d7ebea7f7 (diff)
drop div by zero error
-rw-r--r--gramar.y2
1 files changed, 0 insertions, 2 deletions
diff --git a/gramar.y b/gramar.y
index 921e7c8..f2fa79e 100644
--- a/gramar.y
+++ b/gramar.y
@@ -85,8 +85,6 @@ prog
statement
: opcode operand COMMA operand
{
- if ($1 == 0x05 && $4 == 0x20)
- yyerror("division by zero");
popop(($4 << 10) | ($2 << 4) | $1);
popall();
}