From bd1806ca3217f25ce1c0cf6c24894a3066c7e3f8 Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 2 Sep 2007 09:35:22 +0000 Subject: [PATCH] linux compile fixed git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@235 be3aeb3a-fb24-0410-a615-afba39da0efa --- linux/Makefile | 10 ++++------ linux/fakedasm.c | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/linux/Makefile b/linux/Makefile index 015da6e..12cb4a2 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -56,9 +56,7 @@ OBJS += ../../cpu/mz80/mz80.o # faked asm #DEFINC += -D_ASM_DRAW_C -#DEFINC += -D_ASM_MEMORY_C -#DEFINC += -D_ASM_YM2612_C -OBJS += fakedasm.o +#OBJS += fakedasm.o all: PicoDrive @@ -100,7 +98,7 @@ PicoDrive : $(OBJS) ../gp2x/helix/helix_mp3_x86.a @$(GCC) $(COPT_COMMON) $(DEFINC) -c $< -o $@ # -mtune=arm940t -DEXTERNAL_YM2612 # faked asm -../../Pico/Draw.o : ../../Pico/Draw.c - @echo $< - @$(GCC) $(COPT) $(DEFINC) -D_ASM_DRAW_C -c $< -o $@ +#../../Pico/Draw.o : ../../Pico/Draw.c +# @echo $< +# @$(GCC) $(COPT) $(DEFINC) -D_ASM_DRAW_C -c $< -o $@ diff --git a/linux/fakedasm.c b/linux/fakedasm.c index d0e357c..137116f 100644 --- a/linux/fakedasm.c +++ b/linux/fakedasm.c @@ -23,7 +23,7 @@ extern int Scanline; // Scanline struct TileStrip { int nametab; // Position in VRAM of name table (for this tile line) - int line; // Line number in pixels 0x000-0x3ff within the virtual tilemap + int line; // Line number in pixels 0x000-0x3ff within the virtual tilemap int hscroll; // Horizontal scroll value in pixels for the line int xmask; // X-Mask (0x1f - 0x7f) for horizontal wraparound in the tilemap int *hc; // cache for high tile codes and their positions @@ -166,7 +166,7 @@ static void DrawStrip(struct TileStrip *ts, int sh) *ts->hc++ = cval; // cache it continue; } - +continue; if (code!=oldcode) { oldcode = code; // Get tile address/2: -- 2.39.2