aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/alu.h
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/alu.h
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/alu.h')
-rw-r--r--sim/tic80/alu.h4
1 files changed, 2 insertions, 2 deletions
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)