aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-12-12 03:09:48 +0100
committerStapleButter <thetotalworm@gmail.com>2018-12-12 03:09:48 +0100
commita8f2267a187e20e43f492f98da13cd3fec44aa98 (patch)
tree9b8358ea4908e7b08cee6256cb0119ecbbd3a2e9
parente7a4fe11ed7eb6a4b4d3cc3cc3c31d0e90722ba7 (diff)
zarg
-rw-r--r--src/NDS.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 54a52b3..aee9e60 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -1121,6 +1121,7 @@ u64 GetSysClockCycles(int num)
else
{
ret = LastSysClockCycles;
+ LastSysClockCycles = 0;
if (CurCPU == 1)
{
@@ -1194,8 +1195,8 @@ void NocashPrint(u32 ncpu, u32 addr)
if (!strcmp(cmd, "sp")) sprintf(subs, "%08X", cpu->R[13]);
else if (!strcmp(cmd, "lr")) sprintf(subs, "%08X", cpu->R[14]);
else if (!strcmp(cmd, "pc")) sprintf(subs, "%08X", cpu->R[15]);
- else if (!strcmp(cmd, "frame")) sprintf(subs, "%d", NumFrames);
- else if (!strcmp(cmd, "scanline")) sprintf(subs, "%d", GPU::VCount);
+ else if (!strcmp(cmd, "frame")) sprintf(subs, "%u", NumFrames);
+ else if (!strcmp(cmd, "scanline")) sprintf(subs, "%u", GPU::VCount);
else if (!strcmp(cmd, "totalclks")) sprintf(subs, "%lu", GetSysClockCycles(0));
else if (!strcmp(cmd, "lastclks")) sprintf(subs, "%lu", GetSysClockCycles(1));
else if (!strcmp(cmd, "zeroclks"))