Search
lxdream.org :: lxdream :: r595:02d86b836ef0
lxdream 0.9.1
released Jun 29
Download Now
changeset595:02d86b836ef0
parent594:6118deafd705
child596:dfc0c93d882e
authornkeynes
dateMon Jan 21 11:54:47 2008 +0000 (11 years ago)
Fix disassembly of AND #imm, Rn (was ADD...)
src/sh4/sh4dasm.c
src/sh4/sh4dasm.in
1.1 --- a/src/sh4/sh4dasm.c Sun Jan 20 07:24:38 2008 +0000
1.2 +++ b/src/sh4/sh4dasm.c Mon Jan 21 11:54:47 2008 +0000
1.3 @@ -1273,7 +1273,7 @@
1.4 case 0x9:
1.5 { /* AND #imm, R0 */
1.6 uint32_t imm = (ir&0xFF);
1.7 - snprintf( buf, len, "ADD #%d, R0", imm );
1.8 + snprintf( buf, len, "AND #%d, R0", imm );
1.9 }
1.10 break;
1.11 case 0xA:
2.1 --- a/src/sh4/sh4dasm.in Sun Jan 20 07:24:38 2008 +0000
2.2 +++ b/src/sh4/sh4dasm.in Mon Jan 21 11:54:47 2008 +0000
2.3 @@ -73,7 +73,7 @@
2.4 ADDC Rm, Rn {: snprintf( buf, len, "ADDC R%d, R%d", Rm, Rn ); :}
2.5 ADDV Rm, Rn {: snprintf( buf, len, "ADDV R%d, R%d", Rm, Rn ); :}
2.6 AND Rm, Rn {: snprintf( buf, len, "AND R%d, R%d", Rm, Rn ); :}
2.7 -AND #imm, R0 {: snprintf( buf, len, "ADD #%d, R0", imm ); :}
2.8 +AND #imm, R0 {: snprintf( buf, len, "AND #%d, R0", imm ); :}
2.9 AND.B #imm, @(R0, GBR) {: snprintf( buf, len, "AND.B #%d, @(R0, GBR)", imm ); :}
2.10 BF disp {: snprintf( buf, len, "BF $%xh", disp+pc+4 ); :}
2.11 BF/S disp {: snprintf( buf, len, "BF/S $%xh", disp+pc+4 ); :}
.