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");
 }
Esempio n. 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");
 }
Esempio n. 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");
 }
Esempio n. 4
0
 public void Visit(PrintVar ps)
 {
     sw.WriteLine(Tabs() + "sprintf(buffer,\"%d\",ps.VarName);");
     sw.WriteLine(Tabs() + "printstr(buffer);");
 }
Esempio n. 5
0
 public void Visit(PrintVar pv)
 {
     throw new NotImplementedException("6809 Print var not implemented.");
 }