Skip to content

Commit

Permalink
Fix MVN handling in SNES plugin and add tests
Browse files Browse the repository at this point in the history
Fix #22653.
  • Loading branch information
qookei authored and trufae committed Feb 28, 2024
1 parent fd1f11d commit f3ef5d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libr/arch/p/snes/optable.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static snes_op_t snes_op[] = {
{ "eor (0x%02x),y", SNES_OP_16BIT},
{ "eor (0x%02x)", SNES_OP_16BIT},
{ "eor (0x%02x,s),y", SNES_OP_16BIT},
{ "mvn 0x%02x,0x%02x", SNES_OP_16BIT},
{ "mvn 0x%02x,0x%02x", SNES_OP_24BIT},
{ "eor 0x%02x,x", SNES_OP_16BIT},
{ "lsr 0x%02x,x", SNES_OP_16BIT},
{ "eor [0x%02x],y", SNES_OP_16BIT},
Expand Down
2 changes: 2 additions & 0 deletions test/db/asm/snes_16
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ d "lda #0x8d8d" a98d8d
d "brk 0x80" 0080
d "bne 0x000010" d00e
d "php" 08
d "mvn 0xaa,0xbb" 54aabb
d "mvp 0xcc,0xdd" 44ccdd

0 comments on commit f3ef5d5

Please sign in to comment.