comparison target-utils/libcommon/cmd_memdump_machine.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
34 for (addr = start; addr < start + length; addr += 0x80) { 34 for (addr = start; addr < start + length; addr += 0x80) {
35 srbuf[1] = addr >> 24; 35 srbuf[1] = addr >> 24;
36 srbuf[2] = addr >> 16; 36 srbuf[2] = addr >> 16;
37 srbuf[3] = addr >> 8; 37 srbuf[3] = addr >> 8;
38 srbuf[4] = addr; 38 srbuf[4] = addr;
39 bcopy(addr, srbuf + 5, 0x80); 39 memcpy(srbuf + 5, addr, 0x80);
40 cksum = 0; 40 cksum = 0;
41 for (i = 0; i < 0x85; i++) 41 for (i = 0; i < 0x85; i++)
42 cksum += srbuf[i]; 42 cksum += srbuf[i];
43 srbuf[i] = ~cksum; 43 srbuf[i] = ~cksum;
44 putchar('S'); 44 putchar('S');