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:
stephena 2011-06-12 20:20:19 +00:00
parent dbdfb2f320
commit 221aa50a5b
3 changed files with 7 additions and 7 deletions

View File

@ -22,7 +22,7 @@
#include <cstdlib> #include <cstdlib>
#define STELLA_VERSION "3.4.1" #define STELLA_VERSION "3.4.2_svn"
#define STELLA_BUILD atoi("$Rev$" + 6) #define STELLA_BUILD atoi("$Rev$" + 6)
#endif #endif

View File

@ -323,11 +323,11 @@ string Debugger::valueToString(int value, BaseFormat outputBase)
case kBASE_16: case kBASE_16:
default: default:
if(value < 0x100) if(value < 0x100)
sprintf(buf, "%02x", value); sprintf(buf, "%02X", value);
else if(value < 0x10000) else if(value < 0x10000)
sprintf(buf, "%04x", value); sprintf(buf, "%04X", value);
else else
sprintf(buf, "%08x", value); sprintf(buf, "%08X", value);
break; break;
} }

View File

@ -188,19 +188,19 @@ class Debugger : public DialogContainer
static char* to_hex_4(int i) static char* to_hex_4(int i)
{ {
static char out[2]; static char out[2];
sprintf(out, "%1x", i); sprintf(out, "%1X", i);
return out; return out;
} }
static char* to_hex_8(int i) static char* to_hex_8(int i)
{ {
static char out[3]; static char out[3];
sprintf(out, "%02x", i); sprintf(out, "%02X", i);
return out; return out;
} }
static char* to_hex_16(int i) static char* to_hex_16(int i)
{ {
static char out[5]; static char out[5];
sprintf(out, "%04x", i); sprintf(out, "%04X", i);
return out; return out;
} }
static char* to_bin(int dec, int places, char *buf) { static char* to_bin(int dec, int places, char *buf) {