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