simplify counter code
Add semihost call: open, read, close
Run test.sh directly in Makefile
Rename test.sh to test_semihost.sh