xstormy16 cgen/sid patch
DJ Delorie <[email protected]> Fri, 28 May 2010 21:46:06 -0400
| Newsgroups | gmane.comp.emulators.sid.devel |
|---|---|
| Message-ID | <201005290146.o4T1k6fm026225__3859.16851596466$1275097584$gmane$org@greed.delorie.com> |
[this time with fixed email] Most were OK, but some got missed. 2010-05-28 DJ Delorie <[email protected]> * cpu/xstormy16.cpu (movgriipostincgr, movgriipredecgr, movfgriipredecgr): Fix increment/decrement amount. 2010-05-28 DJ Delorie <[email protected]> * xstormy16-sem.cxx: Regenerate. Index: cgen/cpu/xstormy16.cpu =================================================================== RCS file: /cvs/src/src/cgen/cpu/xstormy16.cpu,v retrieving revision 1.14 diff -p -U3 -r1.14 xstormy16.cpu --- cgen/cpu/xstormy16.cpu 24 Aug 2009 06:46:16 -0000 1.14 +++ cgen/cpu/xstormy16.cpu 29 May 2010 01:18:27 -0000 @@ -725,7 +725,7 @@ (set-alignfix-mem (add Rs imm12) Rdm) (set (mem QI (add Rs imm12)) Rdm)) (set-psw-nowrite (index-of Rdm) Rdm ws2) - (set Rs (add Rs 1))) + (set Rs (add Rs (add ws2 1)))) () ) @@ -735,7 +735,7 @@ ("mov$ws2 (--$Rs,$imm12),$Rdm") (+ OP1_6 OP2A_A ws2 Rs OP4M_1 Rdm OP5_0 imm12) (sequence () - (set Rs (sub Rs 1)) + (set Rs (sub Rs (add ws2 1))) (set-psw-nowrite (index-of Rdm) Rdm ws2) (if ws2 (set-alignfix-mem (add Rs imm12) Rdm) @@ -968,7 +968,7 @@ ("movf$ws2 ($Rb,--$Rs,$imm12),$Rdm") (+ OP1_6 OP2A_E ws2 Rs OP4M_1 Rdm OP5A_0 Rb imm12) (sequence () - (set Rs (sub Rs 1)) + (set Rs (sub Rs (add ws2 1))) (set-psw-nowrite (index-of Rdm) Rdm ws2) (if ws2 (set (mem HI (and (add (join SI HI Rb Rs) imm12) #xFFFFFFFE)) Rdm)