mirror of https://github.com/stella-emu/stella.git
Make sure all hexidecimal number output in the debugger is in uppercase.
Bumped version number. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2259 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
dbdfb2f320
commit
221aa50a5b
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <cstdlib>
|
||||
|
||||
#define STELLA_VERSION "3.4.1"
|
||||
#define STELLA_VERSION "3.4.2_svn"
|
||||
#define STELLA_BUILD atoi("$Rev$" + 6)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -323,11 +323,11 @@ string Debugger::valueToString(int value, BaseFormat outputBase)
|
|||
case kBASE_16:
|
||||
default:
|
||||
if(value < 0x100)
|
||||
sprintf(buf, "%02x", value);
|
||||
sprintf(buf, "%02X", value);
|
||||
else if(value < 0x10000)
|
||||
sprintf(buf, "%04x", value);
|
||||
sprintf(buf, "%04X", value);
|
||||
else
|
||||
sprintf(buf, "%08x", value);
|
||||
sprintf(buf, "%08X", value);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -188,19 +188,19 @@ class Debugger : public DialogContainer
|
|||
static char* to_hex_4(int i)
|
||||
{
|
||||
static char out[2];
|
||||
sprintf(out, "%1x", i);
|
||||
sprintf(out, "%1X", i);
|
||||
return out;
|
||||
}
|
||||
static char* to_hex_8(int i)
|
||||
{
|
||||
static char out[3];
|
||||
sprintf(out, "%02x", i);
|
||||
sprintf(out, "%02X", i);
|
||||
return out;
|
||||
}
|
||||
static char* to_hex_16(int i)
|
||||
{
|
||||
static char out[5];
|
||||
sprintf(out, "%04x", i);
|
||||
sprintf(out, "%04X", i);
|
||||
return out;
|
||||
}
|
||||
static char* to_bin(int dec, int places, char *buf) {
|
||||
|
|
Loading…
Reference in New Issue