#
# Get ROM address from console ROM image

@ignore=();
sysread(STDIN,$ignore,0x4A) || die;
sysread(STDIN,$addrbyte0,1) || die;
sysread(STDIN,$addrbyte1,1) || die;
$addr=(ord($addrbyte0)<<8)+ord($addrbyte1);
print $addr;
