X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.monitor;h=f5eb1caa48d446f4198b490ca9fe04fbbf4d9498;hp=ac25c7084fd118ea735955b1d7fa4be8c1915c37;hb=f2bee319a0c1b0a6c7618c02dbdfeacd68d5fea0;hpb=2d05c4f8044256af81c31ddb067a04c254c8178e diff --git a/client/goodfet.monitor b/client/goodfet.monitor index ac25c70..f5eb1ca 100755 --- a/client/goodfet.monitor +++ b/client/goodfet.monitor @@ -15,13 +15,31 @@ if(len(sys.argv)==1): print "%s verify $foo.hex [0x$start 0x$stop]" % sys.argv[0]; print "%s ramfill" % sys.argv[0]; print "%s ramdepth" % sys.argv[0]; + print "%s info" % sys.argv[0]; + print "%s info" % sys.argv[0]; + print "%s call 0x$start" % sys.argv[0]; + print "%s exec '0x35 0x00 0x..'" % sys.argv[0]; sys.exit(); #Initailize FET and set baud rate client=GoodFET(); client.serInit() +if(sys.argv[1]=="on"): + client.dir(0xFF); + client.out(0xFF); +if(sys.argv[1]=="off"): + client.out(0x00); +if(sys.argv[1]=="call"): + adr=int(sys.argv[2],16); + print "Calling %04x" % adr; + client.call(adr); + client.monitortest(); +if(sys.argv[1]=="info"): + a=client.peekbyte(0xff0); + b=client.peekbyte(0xff1); + print "GoodFET with %02x%02x MCU" % (a,b); if(sys.argv[1]=="ramfill"): client.monitor_ram_pattern(); if(sys.argv[1]=="ramdepth"):