Fixed disassembly of Flag Out bit

Fixed incorrect argument order in OUT instruction
Corrected spacing
This commit is contained in:
Zsolt Vasvari 2008-01-10 04:47:58 +00:00
parent 6cbe41fbc1
commit 4260f4f8ab

View File

@ -114,10 +114,10 @@ static char *IMM_PSU(int pc)
} else { } else {
if (v & 0x80) /* sense bit */ if (v & 0x80) /* sense input */
p += sprintf(p, "si+"); p += sprintf(p, "si+");
if (v & 0x40) if (v & 0x40) /* flag output */
p += sprintf(p, "p+"); p += sprintf(p, "fo+");
if (v & 0x20) /* interrupt inhibit */ if (v & 0x20) /* interrupt inhibit */
p += sprintf(p, "ii+"); p += sprintf(p, "ii+");
if (v & 0x10) /* unused bit 4 */ if (v & 0x10) /* unused bit 4 */
@ -266,7 +266,11 @@ offs_t s2650_dasm(char *buff, offs_t PC, const UINT8 *oprom, const UINT8 *opram)
pc+=2; pc+=2;
break; break;
case 0x10: case 0x11: case 0x10: case 0x11:
sprintf(buff, "**** %02X",op); #if HJB
sprintf(buff, "**** $%02X",op);
#else
sprintf(buff, "**** $%02X",op);
#endif
break; break;
case 0x12: case 0x12:
#if HJB #if HJB
@ -573,7 +577,11 @@ offs_t s2650_dasm(char *buff, offs_t PC, const UINT8 *oprom, const UINT8 *opram)
pc+=2; pc+=2;
break; break;
case 0x90: case 0x91: case 0x90: case 0x91:
sprintf(buff, "**** %02X",op); #if HJB
sprintf(buff, "**** $%02X",op);
#else
sprintf(buff, "**** $%02X",op);
#endif
break; break;
case 0x92: case 0x92:
#if HJB #if HJB
@ -683,7 +691,11 @@ offs_t s2650_dasm(char *buff, offs_t PC, const UINT8 *oprom, const UINT8 *opram)
pc+=1; pc+=1;
break; break;
case 0xb6: case 0xb7: case 0xb6: case 0xb7:
sprintf(buff, "**** %02X", op); #if HJB
sprintf(buff, "**** $%02X",op);
#else
sprintf(buff, "**** $%02X",op);
#endif
break; break;
case 0xb8: case 0xb9: case 0xba: case 0xb8: case 0xb9: case 0xba:
#if HJB #if HJB
@ -714,7 +726,7 @@ offs_t s2650_dasm(char *buff, offs_t PC, const UINT8 *oprom, const UINT8 *opram)
break; break;
case 0xbf: case 0xbf:
#if HJB #if HJB
sprintf(buff, "call %s+r3", ADR(pc)); sprintf(buff, "call %s+r3", ADR(pc));
#else #else
sprintf(buff, "bsxa %s", ADR(pc)); sprintf(buff, "bsxa %s", ADR(pc));
#endif #endif
@ -732,7 +744,11 @@ offs_t s2650_dasm(char *buff, offs_t PC, const UINT8 *oprom, const UINT8 *opram)
#endif #endif
break; break;
case 0xc4: case 0xc5: case 0xc6: case 0xc7: case 0xc4: case 0xc5: case 0xc6: case 0xc7:
sprintf(buff, "**** %02X", op); #if HJB
sprintf(buff, "**** $%02X",op);
#else
sprintf(buff, "**** $%02X",op);
#endif
break; break;
case 0xc8: case 0xc9: case 0xca: case 0xcb: case 0xc8: case 0xc9: case 0xca: case 0xcb:
#if HJB #if HJB
@ -759,7 +775,7 @@ offs_t s2650_dasm(char *buff, offs_t PC, const UINT8 *oprom, const UINT8 *opram)
break; break;
case 0xd4: case 0xd5: case 0xd6: case 0xd7: case 0xd4: case 0xd5: case 0xd6: case 0xd7:
#if HJB #if HJB
sprintf(buff, "out r%d,(%s)", rv, IMM(pc)); sprintf(buff, "out (%s),r%d", IMM(pc), rv);
#else #else
sprintf(buff, "wrte,%d %s", rv, IMM(pc)); sprintf(buff, "wrte,%d %s", rv, IMM(pc));
#endif #endif