summaryrefslogtreecommitdiff
path: root/copt
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>2003-01-29 21:07:56 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:48:48 +0200
commitded00c0d1c0dc38e63b2c48ff8cbb12c1b60c70f (patch)
treed453e3353975e51525ef0a9b08e751ebc5ff9c29 /copt
parentb5790e52270b149e92531a8eb0cd521ff2854dff (diff)
downloaddev86-ded00c0d1c0dc38e63b2c48ff8cbb12c1b60c70f.tar.gz
Import Dev86src-0.16.11.tar.gzv0.16.11
Diffstat (limited to 'copt')
-rw-r--r--copt/rules.8631
1 files changed, 18 insertions, 13 deletions
diff --git a/copt/rules.86 b/copt/rules.86
index 15b0749..2288050 100644
--- a/copt/rules.86
+++ b/copt/rules.86
@@ -91,19 +91,23 @@ inc %[si|di]*
inc %[si|di]*
mov al,-1[si]
mov -1[di],al
+!BCC_EOS
=
lodsb
stosb
+!BCC_EOS
inc %[si|di]*
inc %[si|di]*
mov al,-1[di]
mov -1[si],al
+!BCC_EOS
=
xchg si,di
lodsb
stosb
xchg si,di
+!BCC_EOS
inc si
mov al,-1[si]
@@ -285,23 +289,24 @@ inc %2
push %1
mov %[ax|bx|cx|dx]3,%2
-%[add|sub|and|xor|or]4 %[ax|bx|cx|dx]3,%*[bp]
+%[add|and|xor|or]4 %[ax|bx|cx|dx]3,%*[bp]
inc sp
inc sp
=
-mov %3,%2
-%4 %3,%1
+mov %3,%1
+%4 %3,%2
-push %1
-mov %[ax|bx|cx|dx]3,%2
-%[add|sub|and|xor|or]5 %[ax|bx|cx|dx]3,%6
-%[add|sub|and|xor|or]4 %[ax|dx|cx|dx]3,%*[bp]
-inc sp
-inc sp
-=
-mov %3,%2
-%5 %3,%6
-%4 %3,%1
+# If %1 is ax this fails badly.
+# push %1
+# mov %[ax|bx|cx|dx]3,%2
+# %[add|sub|and|xor|or]5 %[ax|bx|cx|dx]3,%6
+# %[add|sub|and|xor|or]4 %[ax|dx|cx|dx]3,%*[bp]
+# inc sp
+# inc sp
+# =
+# mov %3,%2
+# %5 %3,%6
+# %4 %3,%1
push %1
mov %[ax|bx|cx|dx]3,%*[bp]