From 4fc2cd522e1487ba69cdfc2c40c54f2c0ca51797 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 27 Jul 2016 22:46:22 -0700 Subject: 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. --- backend.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'backend.h') 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; -- cgit v1.2.3