8 static int datavar = 10;
17 joy_install(&joy_static_stddrv);
22 cputsxy(0, 2, "colors:" );
23 for (i = 0; i < 16; ++i) {
30 cprintf("datavar: %02x\n\r", datavar);
31 cprintf("stackvar: %02x\n\r", stackvar);
35 cprintf("Found %d Joysticks.", j);
37 for (i = 0; i < 4; ++i) {
40 memcpy(p, "01234567890abcdef", 16);
41 cprintf("alloced at: %04p - %c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c", p,
42 p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]
63 cprintf("%02x", datavar);
65 cprintf("%02x", stackvar);
66 ++datavar; ++stackvar;
70 cprintf("clock: %08lx", clk);
72 for (i = 0; i < 4; ++i)
76 cprintf ("pad %d: %02x %-6s%-6s%-6s%-6s%-6s%-6s",
78 (j & joy_masks[JOY_UP])? " up " : " ---- ",
79 (j & joy_masks[JOY_DOWN])? " down " : " ---- ",
80 (j & joy_masks[JOY_LEFT])? " left " : " ---- ",
81 (j & joy_masks[JOY_RIGHT])? "right " : " ---- ",
82 (j & joy_masks[JOY_FIRE])? " fire " : " ---- ",
83 (j & joy_masks[JOY_FIRE2])? "fire2 " : " ---- ");