Skip to content

Commit

Permalink
Merge pull request #98 from retro-wertz/OP_RSB
Browse files Browse the repository at this point in the history
GBA: Update OP_RSB
  • Loading branch information
inactive123 authored Jun 3, 2018
2 parents d69855a + 7592321 commit b435507
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2862,9 +2862,9 @@ static void armUnknownInsn(u32 opcode)
#endif
#ifndef OP_RSB
#define OP_RSB \
u32 lhs = bus.reg[(opcode>>16)&15].I; \
u32 rhs = value; \
u32 res = rhs - lhs; \
u32 lhs = value; \
u32 rhs = bus.reg[(opcode>>16)&15].I; \
u32 res = lhs - rhs; \
bus.reg[dest].I = res;
#endif
#ifndef OP_RSBS
Expand Down

0 comments on commit b435507

Please sign in to comment.