diff options
-rw-r--r-- | mixlib/mix_vm_command.c | 2 | ||||
-rw-r--r-- | mixlib/xmix_vm.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/mixlib/mix_vm_command.c b/mixlib/mix_vm_command.c index 0a3091a..264c9ff 100644 --- a/mixlib/mix_vm_command.c +++ b/mixlib/mix_vm_command.c @@ -1537,7 +1537,7 @@ get_reg_pred_ (const gchar *arg) if ( strlen (arg) == 2 ) { int i = arg[1] - '1'; - if ( i > 0 && i < 7 ) + if (i >= 0 && i < 6) pred = MIX_PRED_REG_I1 - 1 + i; } } diff --git a/mixlib/xmix_vm.h b/mixlib/xmix_vm.h index 4ed1e42..e0f26ae 100644 --- a/mixlib/xmix_vm.h +++ b/mixlib/xmix_vm.h @@ -52,6 +52,7 @@ struct mix_vm_t mix_src_file_t *src_file; /* source of last loaded code file */ mix_device_factory_t factory; /* the factory for new devices */ mix_predicate_list_t *pred_list; /* predicates for conditional bps */ + GSList *address_list; /* list of executed addresses */ }; /* Macros for accessing/modifying the above structure. @@ -75,6 +76,7 @@ enum { A_ = 0, X_, J_, I1_, I2_, I3_, I4_, I5_, I6_ }; #define get_loc_(vm) (vm->loc_count) #define get_clock_(vm) (vm->clock) #define get_pred_list_(vm) (vm->pred_list) +#define get_address_list_(vm) (vm->address_list) #define set_reg_(vm,r,x) \ do { \ |