mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
linux compile fixed
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@235 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
dc1782adbd
commit
bd1806ca32
2 changed files with 6 additions and 8 deletions
|
@ -56,9 +56,7 @@ OBJS += ../../cpu/mz80/mz80.o
|
||||||
|
|
||||||
# faked asm
|
# faked asm
|
||||||
#DEFINC += -D_ASM_DRAW_C
|
#DEFINC += -D_ASM_DRAW_C
|
||||||
#DEFINC += -D_ASM_MEMORY_C
|
#OBJS += fakedasm.o
|
||||||
#DEFINC += -D_ASM_YM2612_C
|
|
||||||
OBJS += fakedasm.o
|
|
||||||
|
|
||||||
|
|
||||||
all: PicoDrive
|
all: PicoDrive
|
||||||
|
@ -100,7 +98,7 @@ PicoDrive : $(OBJS) ../gp2x/helix/helix_mp3_x86.a
|
||||||
@$(GCC) $(COPT_COMMON) $(DEFINC) -c $< -o $@ # -mtune=arm940t -DEXTERNAL_YM2612
|
@$(GCC) $(COPT_COMMON) $(DEFINC) -c $< -o $@ # -mtune=arm940t -DEXTERNAL_YM2612
|
||||||
|
|
||||||
# faked asm
|
# faked asm
|
||||||
../../Pico/Draw.o : ../../Pico/Draw.c
|
#../../Pico/Draw.o : ../../Pico/Draw.c
|
||||||
@echo $<
|
# @echo $<
|
||||||
@$(GCC) $(COPT) $(DEFINC) -D_ASM_DRAW_C -c $< -o $@
|
# @$(GCC) $(COPT) $(DEFINC) -D_ASM_DRAW_C -c $< -o $@
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ extern int Scanline; // Scanline
|
||||||
struct TileStrip
|
struct TileStrip
|
||||||
{
|
{
|
||||||
int nametab; // Position in VRAM of name table (for this tile line)
|
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 hscroll; // Horizontal scroll value in pixels for the line
|
||||||
int xmask; // X-Mask (0x1f - 0x7f) for horizontal wraparound in the tilemap
|
int xmask; // X-Mask (0x1f - 0x7f) for horizontal wraparound in the tilemap
|
||||||
int *hc; // cache for high tile codes and their positions
|
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
|
*ts->hc++ = cval; // cache it
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
if (code!=oldcode) {
|
if (code!=oldcode) {
|
||||||
oldcode = code;
|
oldcode = code;
|
||||||
// Get tile address/2:
|
// Get tile address/2:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue