FreeCalypso > hg > freecalypso-tools
comparison target-utils/libcommon/cmd_memdump_human.c @ 99:9214118ae941
target-utils: use of bcopy() changed to memcpy()
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 01 Nov 2016 00:05:31 +0000 |
parents | e7502631a0f9 |
children |
comparison
equal
deleted
inserted
replaced
98:5aff772ff84d | 99:9214118ae941 |
---|---|
29 if (start & 0xF || length & 0xF) { | 29 if (start & 0xF || length & 0xF) { |
30 printf("ERROR: implementation limit: 16-byte alignment required\n"); | 30 printf("ERROR: implementation limit: 16-byte alignment required\n"); |
31 return; | 31 return; |
32 } | 32 } |
33 for (offset = 0; offset < length; offset += 0x10) { | 33 for (offset = 0; offset < length; offset += 0x10) { |
34 bcopy(start + offset, intbuf, 0x10); | 34 memcpy(intbuf, start + offset, 0x10); |
35 printf("%08X: ", start + offset); | 35 printf("%08X: ", start + offset); |
36 for (i = 0; i < 16; i++) { | 36 for (i = 0; i < 16; i++) { |
37 printf("%02X ", intbuf[i]); | 37 printf("%02X ", intbuf[i]); |
38 if ((i & 3) == 3) | 38 if ((i & 3) == 3) |
39 putchar(' '); | 39 putchar(' '); |