Re: xstormy16 cgen/sid patch

Dave Brolley <[email protected]> Mon, 31 May 2010 10:40:44 -0400
Newsgroups gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
If you're seeking approval to commit, then please go ahead.

Thanks,
Dave

On 05/28/2010 09:46 PM, DJ Delorie wrote:
> [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)
>