public void Ld(I16Type target, short offset, R8Type source) { if (offset < -128 || offset > 127) { throw new NotImplementedException($"Index addressing offset {offset} not supported"); } AddInstruction(new Instruction(Opcode.Ld, "(" + target.ToString() + string.Format("{0:+#;-#;+0}", offset) + "), " + source.ToString())); }
public static Instruction Ld(I16Type target, short offset, R8Type source) { return(new Instruction(Opcode.Ld, "(" + target.ToString() + string.Format("{0:+#;-#;+0}", offset) + "), " + source.ToString())); }
public static Instruction Ld(R8Type target, I16Type source, short offset) { return(new Instruction(Opcode.Ld, target.ToString() + ", (" + source.ToString() + string.Format("{0:+#;-#;+0}", offset) + ")")); }