Initial commit
[dsnet.git] / tools / dsnet / lib / dump.c
blob898306ee810cda154445f8d2b42298dd032a8f41
1 /tmp/g/tools/dsnet/lib/dump.c:
2 static int print_dcmp (byte *bp /* 0x8 */, int n /* 0xc */)
5 DCMP_ERROR_DATA *er;
6 DCMP_STATUS_DATA *sd;
7 DCMP_ECHO_DATA *ed;
8 DCMP_CONNECT_DATA *cd;
9 DCMP_HDR *dsc;
11 DCMP_BOOTP *cb;
15 static int print_ttyp (byte *bp /* 0x8 */, int n /* 0xc */)
18 word wv;
19 int i;
22 static int print_drfp (byte *bp /* 0x8 */, int n /* 0xc */)
25 int i;
26 int r;
27 word req;
28 word *wp;
31 static int print_netmp (byte *bp /* 0x8 */, int n /* 0xc */)
34 char *msg;
35 int i;
36 int nprotos;
37 NETMP_PROTOS *protos;
38 NETMP_HDR *p;
40 word *wp;
41 NETMP_BOOTP *mb;
44 byte *bp;
48 static int print_dbgp (byte *bp /* 0x8 */, int n /* 0xc */, int f_ee /* 0x10 */)
51 int r;
52 quad *qp;
53 word *wp;
54 DBGP_REG *rh;
55 DBGP_MEM *mh;
56 DBGP_HDR *ch;
58 int argc;
59 char *p;
60 char *bp;
61 DBGP_EERUN *eerun;
64 DBGP_BRKPT_DATA *bps;
67 DBGP_XGKT_CTL *xc;
70 DBGP_XGKT_DATA *xd;
74 static int print_iloadp (byte *bp /* 0x8 */, int n /* 0xc */)
77 int l;
78 int i;
79 char *cp;
80 word *wp;
81 ILOADP_MODINFO_DATA *mi;
82 ILOADP_HDR *p;
85 static int print_eloadp (byte *bp /* 0x8 */, int n /* 0xc */)
88 int l;
89 int i;
90 char *cp;
91 word *wp;
92 ELOADP_MODINFO_DATA *mi;
93 ELOADP_HDR *p;
96 void ds_dump (char *str /* 0x8 */, DECI2_HDR *dh /* 0xc */, int n /* 0x10 */)
99 byte *bp;
100 int r;
101 int i;
104 int (*ds_rdwr_mem_align_func) (/* unknown */);
105 int (*ds_load_mem_func) (/* unknown */);
106 int (*ds_store_mem_func) (/* unknown */);
107 int (*ds_load_quad_reg_func) (/* unknown */);
108 int (*ds_store_quad_reg_func) (/* unknown */);
109 int (*ds_symbol_to_value_func) (/* unknown */);
110 int (*ds_symbol_completion_func) (/* unknown */);
111 int (*ds_help_completion_func) (/* unknown */);
112 void (*ds_idle_func) (/* unknown */);
113 int (*ds_check_reserved_name_func) (/* unknown */);
114 void (*ds_drfp_err_func) (/* unknown */);
115 struct _GIF_OPT gif;
116 struct _GIF_OPT *pgif;
117 struct _SMEM_OPT smem;
118 struct _SMEM_OPT *psmem;
119 int m_result;
120 word m_sdram;
121 word m_init;