retro1/software/retro1-tests/wozmon/getaddress
2017-04-17 10:09:33 -07:00

9 lines
284 B
Bash

#!/bin/sh
#
# Get load and run addresses from map file and output in hex in format
# to be used as arguments to the bintomon program.
L=`grep "RESET " wozmon.map | head -1 | awk '{ print $2 }'`
R=`grep "RESET " wozmon.map | head -1 | awk '{ print $2 }'`
echo "-l 0x$L -r 0x$R"