1 /**
2 * AUTOHIT 2003
3 * Copyright Erich P Gatejen (c) 1989,1997,2003,2004
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Additional license information can be found in the documentation.
19 * @author Erich P Gatejen
20 */
21
22 package autohit.vm.i;
23
24 /**
25 * A Virtual Machine instruction. This is a math instruction
26 * It will execute the operation from RIGHT register to LEFT register, and leave
27 * the result in the LEFT register.
28 *
29 * @see autohit.vm.i.VMInstruction
30 *
31 * @author Erich P. Gatejen
32 * @version 1.0
33 * <i>Version History</i>
34 * <code>EPG - Rewrite - 9Apr03
35 *
36 */
37 public class VMIMath extends VMInstruction {
38
39 final static long serialVersionUID = 1;
40
41 /**
42 * String to evaluate.
43 * @serial
44 */
45 public String o;
46
47 /**
48 * Default constructor.
49 */
50 public VMIMath() {
51 super(VMInstruction.MATH);
52 }
53
54 /**
55 * Dump this Instruction. Mostly for debugging.
56 *
57 * @return a String containing the dump.
58 */
59 public String toString() {
60 return "VMIMath " + super.toString() + ": --- operation=" + o;
61 }
62
63 }
|