mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +00:00
In Assembler.java, I moved the overloaded parseDWInstruction() method to be sequential to the earlier method of the same name.
This commit is contained in:
parent
2982fcbbc1
commit
3a35f3fdfc
@ -219,6 +219,17 @@ public class Assembler {
|
|||||||
return bos.toByteArray();
|
return bos.toByteArray();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parse the DW instruction (Define word). Handles DUP operator
|
||||||
|
*
|
||||||
|
* @param line Current line. assuming that comments and labels are removed
|
||||||
|
* @param currentLine Current line number
|
||||||
|
* @return Encoded instruction, null if the line is not a DW instruction
|
||||||
|
*/
|
||||||
|
private static byte[] parseDWInstruction(String line, int currentLine) throws AssemblyException {
|
||||||
|
return parseDWInstruction(line, null, currentLine);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse the dup operator
|
* Parse the dup operator
|
||||||
@ -271,17 +282,6 @@ public class Assembler {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Parse the DW instruction (Define word). Handles DUP operator
|
|
||||||
*
|
|
||||||
* @param line Current line. assuming that comments and labels are removed
|
|
||||||
* @param currentLine Current line number
|
|
||||||
* @return Encoded instruction, null if the line is not a DW instruction
|
|
||||||
*/
|
|
||||||
private static byte[] parseDWInstruction(String line, int currentLine) throws AssemblyException {
|
|
||||||
return parseDWInstruction(line, null, currentLine);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check for and handle section declarations (.text and .data)
|
* Check for and handle section declarations (.text and .data)
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user