fix gregs complaints :)
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
all: conio.pce
|
||||
|
||||
conio.pce: conio.c
|
||||
../../../bin/cl65 -t pce conio.c ../../../joy/pce-stdjoy.joy --mapfile conio.map -o conio.pce
|
||||
../../../bin/cl65 -t pce conio.c --mapfile conio.map -o conio.pce
|
||||
|
||||
clean:
|
||||
$(RM) conio.pce
|
||||
$(RM) conio.map
|
||||
|
||||
test: conio.pce
|
||||
mednafen -force_module pce conio.pce
|
||||
|
||||
@@ -33,13 +33,13 @@ void main(void)
|
||||
cprintf("stackvar: %02x\n\r", stackvar);
|
||||
|
||||
j = joy_count();
|
||||
gotoxy(0,10);
|
||||
gotoxy(0,9);
|
||||
cprintf("Found %d Joysticks.", j);
|
||||
|
||||
for (i = 0; i < 4; ++i) {
|
||||
gotoxy(0, 17 + i);
|
||||
gotoxy(0, 16 + i);
|
||||
p = malloc(16);
|
||||
memcpy(p, "01234567890abcdef", 16);
|
||||
memcpy(p, "0123456789abcdef", 16);
|
||||
cprintf("alloced at: %04p - %c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c", p,
|
||||
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]
|
||||
@@ -88,12 +88,12 @@ void main(void)
|
||||
cprintf("%02x", stackvar);
|
||||
++datavar; ++stackvar;
|
||||
|
||||
gotoxy(0,8);
|
||||
gotoxy(0,7);
|
||||
clk = clock();
|
||||
cprintf("clock: %08lx", clk);
|
||||
|
||||
for (i = 0; i < 4; ++i) {
|
||||
gotoxy(0, 12 + i);
|
||||
gotoxy(0, 11 + i);
|
||||
j = joy_read (i);
|
||||
cprintf ("pad %d: %02x %-6s%-6s%-6s%-6s%-6s%-6s%-6s%-6s",
|
||||
i, j,
|
||||
|
||||
Reference in New Issue
Block a user