Skip to content

Commit

Permalink
More supported bios firmware images in r_bin_bios
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Kochkov committed Jun 9, 2013
1 parent c53ae27 commit b7f7054
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions libr/bin/p/bin_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ static RBinInfo* info(RBinArch *arch) {
static int check(RBinArch *arch) {
if (arch->buf) {
const ut32 ep = arch->buf->length - 0x10000 + 0xfff0; /* F000:FFF0 address */
if (arch->buf->buf[0] == 0xff)
/* Check if this a 'jmp' opcode */
if ((arch->buf->buf[ep] == 0xea) | (arch->buf->buf[ep] == 0xe9))
return 1;
/* Check if this a 'jmp' opcode */
if ((arch->buf->buf[ep] == 0xea) || (arch->buf->buf[ep] == 0xe9))
return 1;
}
return 0;
}
Expand Down

0 comments on commit b7f7054

Please # to comment.