This commit is contained in:
Adrien Bourmault 2020-01-17 22:57:09 +01:00
parent a22eb6669d
commit f7e857a946
1 changed files with 4 additions and 4 deletions

View File

@ -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]);