Permalink
Browse files

tools/asm/pfpu: quick and dirty script to run pfpuasm and execute the…

… result

The environment variable M1_HOST defines on which M1 to execute
the code. M1_USER and M1_PW define the telnet access.
  • Loading branch information...
1 parent 8696dfc commit c8441161f773c3b9ec436e1cafa73543fd07dca2 @wpwrak wpwrak committed Jan 15, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 tools/asm/pfpu
View
@@ -0,0 +1,10 @@
+#!/bin/sh
+reg="sed 's/^[^#]*# R[0-9]* = //'"
+[ "$1" = -i ] && reg=cat
+trap "rm -f _out$$" 0
+./pfpuasm "$@" >_out$$ || exit
+nc -i 1 -C -t -v ${M1_HOST:-m1} telnet <<EOF
+${M1_USER:-foo}
+${M1_PW:-bar}
+pfpu `eval $reg _out$$ | sed 's/#.*//' | tr '\012' ' '`
+EOF

0 comments on commit c844116

Please sign in to comment.