X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETConsole.py;h=a7eccd32f6b7bf43667be5206b0c07dbf9cfa795;hp=3612007f4c0620c9b5b58395c8ec2b93d8649ca1;hb=f7fdc48f01ada713d5034763a2f3395fe2a7c51b;hpb=08d4b0b5273fa05983e1564d1aac464c56b70200 diff --git a/client/GoodFETConsole.py b/client/GoodFETConsole.py index 3612007..a7eccd3 100644 --- a/client/GoodFETConsole.py +++ b/client/GoodFETConsole.py @@ -51,6 +51,11 @@ class GoodFETConsole(): self.prompt(); def handle(self, str): """Handle a command string. First word is command.""" + #Lines beginning with ? are cries for help. + if(str[0]=="?"): + print "Term Commands:" + print commands + return; #Lines beginning with # are comments. if(str[0]=="#"): return; #Lines beginning with ! are Python. @@ -99,7 +104,7 @@ class GoodFETConsole(): adr= self.client.name2adr(adr); #print "%i" % adr; print "0x%08x:= 0x%04x" % ( - adr, self.client.peekword(adr, + adr, self.client.peek16(adr, memory)); def CMDflash(self,args): file=args[1];