aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-10-20 02:03:06 +0000
committerAndrew Cagney <cagney@redhat.com>1997-10-20 02:03:06 +0000
commit0a0ecb2120ef870019377cd220dac3c9c41135b4 (patch)
treed76344bf9188ed850948530f7ee5b4c88dd5f3b6 /sim/tic80
parent66a6a38139e2aba0919916fe9328753ac9eedd46 (diff)
downloadgdb-0a0ecb2120ef870019377cd220dac3c9c41135b4.zip
gdb-0a0ecb2120ef870019377cd220dac3c9c41135b4.tar.gz
gdb-0a0ecb2120ef870019377cd220dac3c9c41135b4.tar.bz2
Add 8 bit arithmetic to sim-alu.
Fix flags (Carry, oVerflow) for negate and subtract. Add ALU*_RESULT macros for accessing final result of ALU op.
Diffstat (limited to 'sim/tic80')
-rw-r--r--sim/tic80/ChangeLog4
-rw-r--r--sim/tic80/alu.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/sim/tic80/ChangeLog b/sim/tic80/ChangeLog
index b4462c7..bdd1d79 100644
--- a/sim/tic80/ChangeLog
+++ b/sim/tic80/ChangeLog
@@ -1,3 +1,7 @@
+Fri Oct 17 17:26:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * alu.h (ALU32_END): Use ALU32_RESULT.
+
Mon Sep 29 12:49:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
* insns (get_fp_reg, set_fp_reg): Update to use changed sim_fpu
diff --git a/sim/tic80/alu.h b/sim/tic80/alu.h
index ce40a01..8d4e38b 100644
--- a/sim/tic80/alu.h
+++ b/sim/tic80/alu.h
@@ -27,8 +27,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define ALU32_END(TARG) \
{ \
- (TARG) = (unsigned32)alu_carry_val; /* FIXME */ \
-}}
+ (TARG) = ALU32_RESULT; /* FIXME */ \
+}
#define ALU_END(TARG) ALU32_END(TARG)