Skip to content

Commit

Permalink
build 20170920
Browse files Browse the repository at this point in the history
[+] deBUGa : changing the breakpoints hotkeys
  • Loading branch information
samstyle committed Sep 20, 2017
1 parent 139230d commit a1d6c0f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Release
@@ -1 +1 @@
0.6.20170912
0.6.20170920
15 changes: 9 additions & 6 deletions src/libxpeccy/cartridge.c
Expand Up @@ -694,12 +694,15 @@ void sltEject(xCartridge* slot) {
if (slot->data == NULL) return;
// save cartrige ram
char rname[FILENAME_MAX];
strcpy(rname, slot->name);
strcat(rname, ".ram");
FILE* file = fopen(rname, "wb");
if (file) {
fwrite(slot->ram, 0x8000, 1, file);
fclose(file);
FILE* file;
if (strlen(slot->name)) {
strcpy(rname, slot->name);
strcat(rname, ".ram");
file = fopen(rname, "wb");
if (file) {
fwrite(slot->ram, 0x8000, 1, file);
fclose(file);
}
}
// free rom
if (slot->data) {
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
@@ -1 +1 @@
#define VERSION 0.6.20170912
#define VERSION 0.6.20170920
13 changes: 9 additions & 4 deletions src/xgui/debuga/dbg_disasm.cpp
Expand Up @@ -445,6 +445,7 @@ int xDisasmTable::updContent() {
void xDisasmTable::keyPressEvent(QKeyEvent* ev) {
QModelIndex idx = currentIndex();
int bpt = MEM_BRK_FETCH;
int bpr = BRK_MEMCELL;
switch (ev->key()) {
case Qt::Key_Up:
if ((ev->modifiers() & Qt::ControlModifier) || (idx.row() == 0)) {
Expand Down Expand Up @@ -475,13 +476,17 @@ void xDisasmTable::keyPressEvent(QKeyEvent* ev) {
ev->ignore();
break;
case Qt::Key_F2:
if (ev->modifiers() & Qt::AltModifier)
if (ev->modifiers() & Qt::AltModifier) {
bpt = MEM_BRK_RD;
else if (ev->modifiers() & Qt::ControlModifier)
} else if (ev->modifiers() & Qt::ControlModifier) {
bpt = MEM_BRK_WR;
else
} else if (ev->modifiers() & Qt::ShiftModifier) {
bpt = MEM_BRK_FETCH;
} else {
bpr = BRK_CPUADR;
bpt = MEM_BRK_FETCH;
brkXor(BRK_MEMCELL, bpt, getData(idx.row(), 0, Qt::UserRole).toInt(), -1);
}
brkXor(bpr, bpt, getData(idx.row(), 0, Qt::UserRole).toInt(), -1);
emit rqRefill();
ev->ignore();
break;
Expand Down

0 comments on commit a1d6c0f

Please sign in to comment.