public abstract class Directive
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
config |
protected java.io.OutputStream |
outputStream |
protected java.util.List<Token> |
parameters |
| Modifier | Constructor and Description |
|---|---|
protected |
Directive(Configuration config,
java.io.OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Token token) |
protected void |
jmp(int address) |
protected void |
lda(int value) |
protected void |
ldy(int value) |
protected Token |
require(Token.Type... types) |
protected int |
requiresInteger() |
protected java.lang.String |
requiresString() |
protected void |
setAddress(int value,
int address) |
protected void |
sta(int address) |
abstract void |
writeBytes(int startAddress,
Line line)
Write directive contents to output file.
|
protected Configuration config
protected java.io.OutputStream outputStream
protected java.util.List<Token> parameters
protected Directive(Configuration config, java.io.OutputStream outputStream)
public void append(Token token)
protected Token require(Token.Type... types)
protected java.lang.String requiresString()
protected int requiresInteger()
protected void ldy(int value)
throws java.io.IOException
java.io.IOExceptionprotected void jmp(int address)
throws java.io.IOException
java.io.IOExceptionprotected void lda(int value)
throws java.io.IOException
java.io.IOExceptionprotected void sta(int address)
throws java.io.IOException
java.io.IOExceptionprotected void setAddress(int value,
int address)
throws java.io.IOException
java.io.IOExceptionpublic abstract void writeBytes(int startAddress,
Line line)
throws java.io.IOException
java.io.IOException