From 3a35f3fdfccc7f660b8ae9014f080960f212f747 Mon Sep 17 00:00:00 2001 From: Richard Cuthbert Date: Wed, 19 Jun 2019 00:05:44 +0100 Subject: [PATCH] In Assembler.java, I moved the overloaded parseDWInstruction() method to be sequential to the earlier method of the same name. --- .../simon987/server/assembly/Assembler.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Server/src/main/java/net/simon987/server/assembly/Assembler.java b/Server/src/main/java/net/simon987/server/assembly/Assembler.java index 53156cf..2c8af1e 100755 --- a/Server/src/main/java/net/simon987/server/assembly/Assembler.java +++ b/Server/src/main/java/net/simon987/server/assembly/Assembler.java @@ -219,6 +219,17 @@ public class Assembler { 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 @@ -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) *