예제 #1
0
 public void Visit(PrintVar pv)
 {
     sw.WriteLine("\t; printing " + pv.VarName);
     sw.WriteLine("\tlda " + game.GetVarAddr(pv.VarName));
     sw.WriteLine("\tsta divisor");
     sw.WriteLine("\tjsr itoa ; convert and print");
 }
예제 #2
0
 public void Visit(PrintVar pv)
 {
     sw.WriteLine("\t; printing " + pv.VarName);
     sw.WriteLine("\tmov ah,0");
     sw.WriteLine("\tmov al, " + game.GetVarAddr(pv.VarName));
     sw.WriteLine("\tpush ax");
     sw.WriteLine("\tcall print_var");
     sw.WriteLine("\tadd sp,2  ; pop params");
 }
예제 #3
0
 public void Visit(PrintVar ps)
 {
     //TODO - add z80 printvar
     sw.WriteLine("\t;printing variable " + ps.VarName);
     sw.WriteLine($"\tld a,({ps.VarName})");
     sw.WriteLine("\tcall itoa");
     sw.WriteLine("\tld hl,itoabuffer");
     sw.WriteLine("\tcall OUTLIN");
 }
예제 #4
0
 public void Visit(PrintVar ps)
 {
     sw.WriteLine(Tabs() + "sprintf(buffer,\"%d\",ps.VarName);");
     sw.WriteLine(Tabs() + "printstr(buffer);");
 }
예제 #5
0
 public void Visit(PrintVar pv)
 {
     throw new NotImplementedException("6809 Print var not implemented.");
 }