#!/bin/bash for bin_file in listing_0039_more_movs listing_0040_challenge_movs; do ./8086-decode $bin_file > test.asm nasm test.asm if ! diff -s test $bin_file; then echo "Test $bin_file failed!" exit 1 fi done exit 0