상속: Z80Assembler.Register
예제 #1
0
 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()));
 }
예제 #2
0
 public static Instruction Ld(I16Type target, short offset, R8Type source)
 {
     return(new Instruction(Opcode.Ld, "(" + target.ToString() + string.Format("{0:+#;-#;+0}", offset) + "), " + source.ToString()));
 }
예제 #3
0
 public static Instruction Ld(R8Type target, I16Type source, short offset)
 {
     return(new Instruction(Opcode.Ld, target.ToString() + ", (" + source.ToString() + string.Format("{0:+#;-#;+0}", offset) + ")"));
 }