getpc() method
[goodfet] / client / GoodFETConsole.py
index cf74cf9..751f580 100644 (file)
@@ -69,6 +69,10 @@ class GoodFETConsole():
     def CMDstatus(self,args):
         print self.client.status();
         return;
+    def CMDhalt(self,args):
+        print self.client.halt();
+    def CMDresume(self,args):
+        print self.client.resume();
     def CMDpeek(self,args):
         adr=eval(args[1]);
         memory="vn";
@@ -78,6 +82,9 @@ class GoodFETConsole():
     def CMDflash(self,args):
         file=args[1];
         self.client.flash(self.expandfilename(file));
+    def CMDwhere(self,args):
+        pc=self.client.getpc();
+        print "PC=0x%04X" % pc;
     def CMDchip(self,args):
         cmd="self.client.CMD%s()" % args[1];
         print cmd;