summaryrefslogtreecommitdiffhomepage
path: root/mixlib
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-09-11 22:53:20 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-09-11 22:53:20 +0000
commit857e0dacb9ec9942d0377153d1feb9b05fecc8dc (patch)
treeb0ef598d61c869c2f5f7019aaeab033f4b9d80b4 /mixlib
parentbbdc459f865669e5b1645daab92d58ab0b54317b (diff)
downloadmdk-857e0dacb9ec9942d0377153d1feb9b05fecc8dc.tar.gz
mdk-857e0dacb9ec9942d0377153d1feb9b05fecc8dc.tar.bz2
(mix_vm_clock_add_lapse) fixed time del for the MOVE instruction
Diffstat (limited to 'mixlib')
-rw-r--r--mixlib/mix_vm_clock.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mixlib/mix_vm_clock.c b/mixlib/mix_vm_clock.c
index 41e7116..1d09939 100644
--- a/mixlib/mix_vm_clock.c
+++ b/mixlib/mix_vm_clock.c
@@ -1,9 +1,9 @@
/* -*-c-*- -------------- mix_vm_clock.c :
* Implementation of the functions declared in mix_vm_clock.h
* ------------------------------------------------------------------
- * Last change: Time-stamp: "01/02/20 00:23:58 jose"
+ * $Id: mix_vm_clock.c,v 1.2 2001/09/11 22:53:20 jao Exp $
* ------------------------------------------------------------------
- * Copyright (C) 2000 Free Software Foundation, Inc.
+ * Copyright (C) 2000, 2001 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -60,7 +60,9 @@ mix_vm_clock_add_lapse (mix_vm_clock_t *clock, const mix_ins_t *ins)
if (ins != NULL)
{
t = exec_times_[ins->opcode];
- if (ins->opcode == mix_MOVE) t += 2 * (ins->fspec);
+ if (ins->opcode == mix_opMOVE) {
+ t += 2 * (ins->fspec);
+ }
}
clock->time += t;
return t;