summaryrefslogtreecommitdiff
path: root/ecomp-c/test1.e
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-03-07 19:27:24 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-03-07 19:27:24 +0100
commitd196299feb4ec0f5fb8f6c17f0dc1336882c827f (patch)
tree91b0d4c055cd6c741b383ae1235aef21e1e600bf /ecomp-c/test1.e
parent58bc910eb47ba2e669b3044ac575876336528215 (diff)
downloadcompilertests-d196299feb4ec0f5fb8f6c17f0dc1336882c827f.tar.gz
compilertests-d196299feb4ec0f5fb8f6c17f0dc1336882c827f.tar.bz2
some work on the i386 assembler
Diffstat (limited to 'ecomp-c/test1.e')
-rw-r--r--ecomp-c/test1.e2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecomp-c/test1.e b/ecomp-c/test1.e
index d276f9c..35ae6de 100644
--- a/ecomp-c/test1.e
+++ b/ecomp-c/test1.e
@@ -25,5 +25,5 @@ begin
a := a + 1; // a should be 8 now
d := a * c + b; // d should be 8 * 20 + 7 = 167 (A7 hex)
d := a * ( c + b ); // d should be 8 * ( 20 + 7 ) = 216 (D8 hex)
- e := ( ( 7 * a + b ) + 2 * ( b + a + 3 ) ) * 2; // ((7*8+7)+2*(7+8+3))*2=198 (C6 hex)
+ e := ( ( 7 * a + b ) + 2 * ( b + a + 3 ) ) * 4 / 2; // ((7*8+7)+2*(7+8+3))*2=198 (C6 hex)
end