diff options
author | Michael Meissner <gnu@the-meissners.org> | 1995-11-08 18:57:06 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1995-11-08 18:57:06 +0000 |
commit | 73c4941b23b9c660bb9bc4bb7acf3ea253356c41 (patch) | |
tree | da13e65308de8337364ccbc1dde964aa60b93609 /sim/ppc/ppc-instructions | |
parent | 0634a431423265b525681625d2796346428c53b0 (diff) | |
download | binutils-73c4941b23b9c660bb9bc4bb7acf3ea253356c41.zip binutils-73c4941b23b9c660bb9bc4bb7acf3ea253356c41.tar.gz binutils-73c4941b23b9c660bb9bc4bb7acf3ea253356c41.tar.bz2 |
first stage in function unit support; add new switches & latest code from andrew
Diffstat (limited to 'sim/ppc/ppc-instructions')
-rw-r--r-- | sim/ppc/ppc-instructions | 48 |
1 files changed, 24 insertions, 24 deletions
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)); # |