2 # Takes a few seconds to execute
3 # Z80-MBC2 board must be attached.
4 # Needs read/write access to the serial device
6 STM8FLASH
=/home
/philipp
/stm8flash
/stm8flash
9 echo "execute_benchmark-z80: Execute a benchmark on an Z80-MBC2 board and report the results line"
10 echo "Wrong number of parameters. Usage: execute_benchmark-z80 <serial device> <benchmark file>"
15 stty
--file $1 115200 cooked
18 # Load benchmark onto the board
19 if ! $STM8FLASH -c stlinkv2
-p stm8af5288
-w "$2" &> /dev
/null
; then
20 echo "FAILED to write benchmark to device!"
23 while read -r line
; do
25 if [[ "$line" == "Loops:"* ]]; then
29 if [[ "$line" == "Dhrystones per Second"* ]]; then
33 if [[ "$line" == "Total ticks"* ]]; then
37 if [[ "$line" == "stdcbench final score"* ]]; then