From 73c4941b23b9c660bb9bc4bb7acf3ea253356c41 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 8 Nov 1995 18:57:06 +0000 Subject: first stage in function unit support; add new switches & latest code from andrew --- sim/ppc/ppc-instructions | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'sim/ppc/ppc-instructions') diff --git a/sim/ppc/ppc-instructions b/sim/ppc/ppc-instructions index 8d2ca05..67ec1dd 100644 --- a/sim/ppc/ppc-instructions +++ b/sim/ppc/ppc-instructions @@ -905,34 +905,34 @@ void::function::invalid_arithemetic_operation:cpu *processor, unsigned_word cia, # 0.31,6.RT,11.RA,16.RB,21.790,31./:X:::Load Halfword Byte-Reverse Indexed -# unsigned_word b; -# unsigned_word EA; -# if (RA == 0) b = 0; -# else b = *rA; -# EA = b + *rB; -# *rT = SWAP2(MEM(unsigned, EA, 2)); + unsigned_word b; + unsigned_word EA; + if (RA == 0) b = 0; + else b = *rA; + EA = b + *rB; + *rT = SWAP_2(MEM(unsigned, EA, 2)); 0.31,6.RT,11.RA,16.RB,21.534,31./:X:::Load Word Byte-Reverse Indexed -# unsigned_word b; -# unsigned_word EA; -# if (RA == 0) b = 0; -# else b = *rA; -# EA = b + *rB; -# *rT = SWAP4(MEM(unsigned, EA, 4)); + unsigned_word b; + unsigned_word EA; + if (RA == 0) b = 0; + else b = *rA; + EA = b + *rB; + *rT = SWAP_4(MEM(unsigned, EA, 4)); 0.31,6.RS,11.RA,16.RB,21.918,31./:X:::Store Half Word Byte-Reversed Indexed -# unsigned_word b; -# unsigned_word EA; -# if (RA == 0) b = 0; -# else b = *rA; -# EA = b + *rB; -# STORE(EA, 2, SWAP2(*rS)); + unsigned_word b; + unsigned_word EA; + if (RA == 0) b = 0; + else b = *rA; + EA = b + *rB; + STORE(EA, 2, SWAP_2(*rS)); 0.31,6.RS,11.RA,16.RB,21.662,31./:X:::Store Word Byte-Reversed Indexed -# unsigned_word b; -# unsigned_word EA; -# if (RA == 0) b = 0; -# else b = *rA; -# EA = b + *rB; -# STORE(EA, 4, SWAP4(*rS)); + unsigned_word b; + unsigned_word EA; + if (RA == 0) b = 0; + else b = *rA; + EA = b + *rB; + STORE(EA, 4, SWAP_4(*rS)); # -- cgit v1.1