From: kvigor Date: Sat, 30 Sep 2000 18:27:41 +0000 (+0000) Subject: Just another DPS peephole X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=91f25231d76542951b21196db0649a80cd0c7974;p=fw%2Fsdcc Just another DPS peephole git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@427 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/ds390/peeph.def b/src/ds390/peeph.def index 71b5cd29..2c44dd3a 100644 --- a/src/ds390/peeph.def +++ b/src/ds390/peeph.def @@ -1882,3 +1882,13 @@ replace { mov dptr, %2 ; Peephole 224: DPS usage re-arranged. } + +replace { + mov dps, #0x01 + mov dptr, %1 + mov dps, #0x00 +} by { + mov dps, #0x01 + mov dptr, %1 + dec dps +}