1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-11 18:49:16 +00:00

BSD/OS X awk does not like hexadecimal constants.

This commit is contained in:
Radosław Kujawa 2017-01-23 13:41:31 +01:00
parent 9c88afae2a
commit 05f6599681

View File

@ -12,7 +12,7 @@ BEGIN {
/^OP_/{
printf "#define %s 0x%X\n", $1, opcode
if (opcode < 0xFF)
if (opcode < 255)
printf "\t{ %s, %s, %s, %d, %s },\n", $1, $2, $3, $4, $5
else
printf "\t{ %s, %s, %s, %d, %s }\n", $1, $2, $3, $4, $5