comparison loadtools/ltmisc.c @ 70:e2698daf40d1

dieid implemented in fc-loadtool as well
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 26 Jul 2013 17:51:49 +0000
parents
children 0c1480317c18
comparison
equal deleted inserted replaced
69:8387dcba945d 70:e2698daf40d1
1 /*
2 * This module is a place to implement little miscellaneous fc-loadtool
3 * commands which don't belong anywhere else.
4 */
5
6 #include <sys/types.h>
7 #include <stdio.h>
8 #include <stdint.h>
9
10 cmd_dieid()
11 {
12 uint32_t addr;
13 uint16_t data;
14 int stat;
15
16 for (addr = 0xFFFEF010; addr <= 0xFFFEF016; addr += 2) {
17 stat = do_r16(addr, &data);
18 if (stat)
19 return(stat);
20 printf("%08lX: %04X\n", (u_long)addr, (int)data);
21 }
22 return(0);
23 }