diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-05-29 07:25:20 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-05-29 07:25:20 +0000 |
commit | 4e95b94e1eaa92c6694582bcb93e90df28d5ee33 (patch) | |
tree | b59a82d0498ab76fc71b9d5054be809c9f133bef /sim/tic80/alu.h | |
parent | efe4f1cbf80c4508bfb97e4ae13db7bb1d1fa31d (diff) | |
download | gdb-4e95b94e1eaa92c6694582bcb93e90df28d5ee33.zip gdb-4e95b94e1eaa92c6694582bcb93e90df28d5ee33.tar.gz gdb-4e95b94e1eaa92c6694582bcb93e90df28d5ee33.tar.bz2 |
Fix subu immed - was incorrectly using unsigned.
Diffstat (limited to 'sim/tic80/alu.h')
-rw-r--r-- | sim/tic80/alu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/tic80/alu.h b/sim/tic80/alu.h index 3f13759..ce40a01 100644 --- a/sim/tic80/alu.h +++ b/sim/tic80/alu.h @@ -41,6 +41,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #define IMEM(CIA) \ (sim_core_read_aligned_4(STATE_CPU (sd, 0), CIA, sim_core_execute_map, (CIA).ip)) +#define IMEM_IMMED(CIA, N) \ +(sim_core_read_aligned_4 (STATE_CPU (sd, 0), CIA, sim_core_execute_map, (CIA).ip + 4 * (N))) + #define MEM(SIGN, EA, NR_BYTES) \ ((SIGN##_##NR_BYTES) sim_core_read_unaligned_##NR_BYTES (STATE_CPU (sd, 0), cia, \ sim_core_read_map, \ |