diff --git a/kaleid/kernel/sh/testcmds.c b/kaleid/kernel/sh/testcmds.c index 0973993..9d9895e 100644 --- a/kaleid/kernel/sh/testcmds.c +++ b/kaleid/kernel/sh/testcmds.c @@ -113,19 +113,19 @@ error_t CmdDumpATASect(int argc, char **argv, char *cmdline) error_t CmdDumpMem(int argc, char **argv, char *cmdline) { - char sector[1024] = {0}; + char sector[8] = {0}; char *address = (char*)strtoul(argv[1], NULL, 16); int nb = 1; //atoi(argv[2]); int x = 0; - int step = 16; + int step = 8; KernLog("Address begin: %p\n", address); - for (int i = 0; i < 1024*nb; i++) { + for (int i = 0; i < 8*nb; i++) { sector[i] = *address++; } - while(x < 1024*nb) { + while(x < 8*nb) { KernLog("%C", shcol); for (int i = 0; i < step; i++) { KernLog("%02x ", (uchar)sector[i+x]);