public void Visit(PrintObjectName ps) { sw.WriteLine("\t;print name statement (id already on stack)"); //the object number should already be on the stack //sw.WriteLine("\tpuls a ; pop obj name to print"); sw.WriteLine("\tclra ; pad it with a 0"); sw.WriteLine("\tpshs a ; to promote it to a short"); sw.WriteLine("\tjsr print_obj_name"); sw.WriteLine("\tleas 2,s ; pop param"); }
public void Visit(PrintObjectName ps) { //id is on stack? sw.WriteLine("\tnop ;print name statement"); sw.WriteLine("\tcall print_obj_name"); sw.WriteLine("\tadd sp,2 ; pop params"); }
public void Visit(PrintObjectName ps) { sw.WriteLine(Tabs() + "param1 = param_stack_pop();"); sw.WriteLine(Tabs() + "print_obj_name(param1); "); sw.WriteLine(Tabs() + "print_cr();"); }
public void Visit(PrintObjectName ps) { sw.WriteLine("\tpla"); sw.WriteLine("\tjsr print_obj_name"); }
public void Visit(PrintObjectName ps) { sw.WriteLine("\tpop af"); sw.WriteLine("\tcall print_obj_name"); }