Skip to content

Commit

Permalink
Fixed some disassembler and memory browser bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lameguy64 committed Jan 23, 2019
1 parent c8461a2 commit 4194896
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ nbproject/private
build
dist
symtest
scrap
*.cfg
*.bin
*.map
*.exe
.dep.inc
2 changes: 1 addition & 1 deletion ProjectClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ int ProjectClass::Save(const char *filename) {
base->InsertEndChild( o );

o = doc.NewElement( "memory_win" );
o->SetAttribute( "active", bmlist_ui->visible() );
o->SetAttribute( "active", mem_ui->visible() );
o->InsertEndChild( DumpWinPos( &doc, mem_ui->x(), mem_ui->y(),
mem_ui->w(), mem_ui->h() ) );
base->InsertEndChild( o );
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@ Essential references if you wish to contribute to this project:
[LSI L64360 datasheet (cop0 registers match the PSX's CPU)](https://www.digchip.com/datasheets/download_datasheet.php?id=488501&part-number=L64360 )

## Changelog
**Version 0.26b (01/23/2019)**
* Fixed memory browser appearing when loading a project when the bookmark window is shown.
* Fixed incorrect register order in sllv, srlv and srav instructions.

**Version 0.25b (12/11/2018)**
* Initial beta release.
2 changes: 1 addition & 1 deletion about.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "MainUI.h"
#include "AboutUI.h"

#define VERSION "0.25b"
#define VERSION "0.26b"

extern MainUI* ui;

Expand Down
8 changes: 4 additions & 4 deletions widgets/mips_disassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void mips_Decode(unsigned int opcode, unsigned int addr, char* output, int arrow
nullptr ,nullptr ,"slt " ,"sltu " , //38
};

strcpy(output, "???");
strcpy( output, "???" );

if( opcode ) {

Expand All @@ -262,8 +262,8 @@ void mips_Decode(unsigned int opcode, unsigned int addr, char* output, int arrow
case 0x6:
case 0x7:
strcpy( output, sc_op[OPCODE2(opcode)] );
sprintf( temp, "%s, %s, %s", regs[OPREGS(opcode)],
regs[OPREGD(opcode)], regs[OPREGT(opcode)] );
sprintf( temp, "%s, %s, %s", regs[OPREGT(opcode)],
regs[OPREGD(opcode)], regs[OPREGS(opcode)] );
strcat( output, temp );
break;
case 0x8: // jr
Expand Down Expand Up @@ -313,7 +313,7 @@ void mips_Decode(unsigned int opcode, unsigned int addr, char* output, int arrow
if( ( OPCODE2(opcode) >= 0x20 ) && ( OPCODE2(opcode) <= 0x27 ) ) {
strcpy( output, sc_op[OPCODE2(opcode)] );
sprintf( temp, "%s, %s, %s", regs[OPREGD(opcode)],
regs[OPREGS(opcode)], regs[OPREGT(opcode)] );
regs[OPREGT(opcode)], regs[OPREGS(opcode)] );
strcat( output, temp );
}

Expand Down

0 comments on commit 4194896

Please sign in to comment.