more cleanup and fixing
This commit is contained in:
12
testcode/lib/pce/Makefile
Normal file
12
testcode/lib/pce/Makefile
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
all: conio.pce
|
||||
|
||||
conio.pce: conio.c
|
||||
../../../bin/cl65 -t pce conio.c ../../../joy/pce-stdjoy.joy --mapfile conio.map -o conio.pce
|
||||
|
||||
clean:
|
||||
$(RM) conio.pce
|
||||
|
||||
test: conio.pce
|
||||
mednafen -force_module pce conio.pce
|
||||
|
||||
@@ -9,6 +9,7 @@ void main(void)
|
||||
{
|
||||
int stackvar = 42;
|
||||
int i, j;
|
||||
clock_t clk;
|
||||
|
||||
joy_install(&joy_static_stddrv);
|
||||
|
||||
@@ -39,7 +40,9 @@ void main(void)
|
||||
++datavar; ++stackvar;
|
||||
|
||||
gotoxy(0,8);
|
||||
cprintf("clock: %08x", clock());
|
||||
clk = clock();
|
||||
cprintf("clock: %08lx", clk);
|
||||
|
||||
for (i = 0; i < 4; ++i)
|
||||
{
|
||||
gotoxy(0, 12 + i);
|
||||
|
||||
Reference in New Issue
Block a user