From 167c441fed6ca0dc6f6f8fdd6a44fb9430b2ddae Mon Sep 17 00:00:00 2001 From: Piotr Fusik Date: Fri, 4 Apr 2014 20:26:33 +0200 Subject: [PATCH] INS: optimize "opcode" if length not specified as one. --- xasm.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xasm.d b/xasm.d index 7424e62..130275a 100644 --- a/xasm.d +++ b/xasm.d @@ -2280,6 +2280,8 @@ void assemblyIns() { } catch (Exception e) { throw new AssemblyError("Error seeking file"); } + if (inOpcode) + length = 1; while (length != 0) { ubyte[1] buffer; try {