Merge blargg's fix into adb.c

- <http://geekhack.org/index.php?topic=14290.msg1075201#msg1075201>