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
commite2fa3ab0a89c2f741eb7d61fdf1d2e88cb58cad9 (patch)
tree5843d55a5019460929743a7616f1804014d1197c /mixlib
parent8ee3b3ff92a28f961d3b8df759613644060379a2 (diff)
downloadmdk-e2fa3ab0a89c2f741eb7d61fdf1d2e88cb58cad9.tar.gz
mdk-e2fa3ab0a89c2f741eb7d61fdf1d2e88cb58cad9.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;