#!/bin/sh
# ./opcodes.sh 88 95
# ./opcodes.sh $((0x58)) $((0x5F))
test()
{
echo -ne "$1" | ndisasm -u - | cut -c 11-
}
if [ -z $1 ];
then
echo "Please provide two numbers";
exit 1;
fi;
OPCODE=$1
OPSEC=$2
while [ $OPCODE -le $OPSEC ];
do
test "\\x"`printf "%x" $OPCODE`
let OPCODE=$OPCODE+1;
done