public void Visit(Mult p) { sw.WriteLine("\tnop ;multiplication (8-bit)"); sw.WriteLine("\tpop ax"); sw.WriteLine("\tpop bx"); sw.WriteLine("\tmul bx"); sw.WriteLine("\tpush ax"); }
public void Visit(Mult p) { sw.WriteLine("\t;multiplication (8-bit)"); sw.WriteLine("\tpuls a"); sw.WriteLine("\tpuls b"); sw.WriteLine("\tmul"); sw.WriteLine("\tpshs b"); }
public void Visit(Mult p) { sw.WriteLine("\t; multiply statement"); sw.WriteLine("\tpop af"); sw.WriteLine("\tpop bc"); sw.WriteLine("\tld c,a"); sw.WriteLine("\tcall bmulc"); sw.WriteLine("\tld a,c"); sw.WriteLine("\tpush af"); }
public void Visit(Mult p) { //operand are both on stack' /* * Console.WriteLine("Pop stack into a"); * Console.WriteLine("Pop stack into b"); * Console.WriteLine("mult a, b"); * Console.WriteLine("push result of a * b onto stack"); */ throw new Exception("multiplication is not supported."); }