summaryrefslogtreecommitdiff
path: root/backend.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-07-27 22:46:22 -0700
committerMichael Pavone <pavone@retrodev.com>2016-07-27 22:46:22 -0700
commit4fc2cd522e1487ba69cdfc2c40c54f2c0ca51797 (patch)
tree8d710f59ea880ab5eb060a5778e4ffaac202a802 /backend.h
parent10ba33e23d93913721acbc9c68da229cdd45606e (diff)
Change cycle tracking code for Z80 core to only use a single register. Store low 7 bits of R in a reg and increment it appropriately.
Diffstat (limited to 'backend.h')
-rw-r--r--backend.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend.h b/backend.h
index 388ce3a..8c2b1b2 100644
--- a/backend.h
+++ b/backend.h
@@ -98,11 +98,11 @@ typedef struct {
uint8_t ram_flags_shift;
uint8_t address_size;
uint8_t byte_swap;
- uint8_t context_reg;
- uint8_t cycles;
- uint8_t limit;
- uint8_t scratch1;
- uint8_t scratch2;
+ int8_t context_reg;
+ int8_t cycles;
+ int8_t limit;
+ int8_t scratch1;
+ int8_t scratch2;
uint8_t align_error_mask;
} cpu_options;