#!/bin/sh
#
# asm0 is the language for writing raw assembly instructions
# as hex numbers. The only syntax 0xNN and ; delimited comments
# at the end of the line.
#
sed -e 's,;.*,,g' -e 's, ,\n,g' |
awk -b '/0x/ { printf("%c", strtonum($1)) }'
#!/bin/sh
#
# asm0 is the language for writing raw assembly instructions
# as hex numbers. The only syntax 0xNN and ; delimited comments
# at the end of the line.
#
sed -e 's,;.*,,g' -e 's, ,\n,g' |
awk -b '/0x/ { printf("%c", strtonum($1)) }'