1 package com.tapina.robe.runtime.instruction;
2
3 import com.tapina.robe.runtime.CPU;
4
5 import java.io.Writer;
6 import java.io.IOException;
7
8 /***
9 * Created by IntelliJ IDEA.
10 * User: gareth
11 * Date: Sep 2, 2003
12 * Time: 4:50:09 PM
13 */
14 public abstract class IndexedAddressSource implements AddressSource {
15 final int baseRegister;
16 final Operand offset;
17
18 public IndexedAddressSource(int baseRegister, Operand offset) {
19 this.baseRegister = baseRegister;
20 this.offset = offset;
21 }
22
23 public abstract void dumpJavaSource(String varName, Writer out) throws IOException;
24 }