]> git.gir.st - Chiptunes-pms150c.git/blob - run-simulator
use sdcc's ucsim to simulate the program
[Chiptunes-pms150c.git] / run-simulator
1 #!/bin/sh
2
3 file=pwm.bin
4 :> $file # touch or truncate
5
6 tail -f $file|head -c 131072|aplay - & # 65536==1st bar, _*2==2nd bar
7 pid=$!
8
9 make
10 echo '!!!!!!!!! press q + return to stop !!!!!!!!!'
11 spdk -Pt PDK13 -I if='ram[0x18],out='$file -g bsv.ihx
12
13 kill $pid
14 rm $file
Imprint / Impressum