diff --git a/snes/fatfstest/Makefile b/snes/fatfstest/Makefile index a1c780c..6f0a838 100644 --- a/snes/fatfstest/Makefile +++ b/snes/fatfstest/Makefile @@ -24,7 +24,7 @@ LD=$(WINE) $(SDK)/bin/WDCLN.exe # Project INC=$(SDK)/include -LIBS=-L$(SDK)/lib/cc +LIBS=-L$(SDK)/lib/cl #-L$(SDK)/lib/c134 @@ -62,7 +62,7 @@ hook.obj: hook.asm %.obj: %.c - $(CC) -wl -wp -sop -MC -I $(INC) $? + $(CC) -wl -wp -sop -ML -I $(INC) $? $(APP): $(OBJS) $(LD) -HB -M21 -V -T -Pff \ @@ -73,5 +73,8 @@ $(APP): $(OBJS) -N $(OBJS) $(LIBS) -O $@ ucon64 -snes -chk $(APP) 2>&1 >/dev/null + + #-Ahook=008000,0000 \ + clean: rm -vf $(APP) *.obj *.TMP diff --git a/snes/fatfstest/StartupSnes.asm b/snes/fatfstest/StartupSnes.asm index 994eda2..13844b7 100644 --- a/snes/fatfstest/StartupSnes.asm +++ b/snes/fatfstest/StartupSnes.asm @@ -12,7 +12,7 @@ CODE XDEF START START: - XREF _~main + XREF ~~main sei ; Disabled interrupts clc ; clear carry to switch to native mode @@ -28,13 +28,13 @@ START: ; Init data used for heap ; see heap definition below - XREF _~_heap_top - XREF _~_mem_start - stz _~_heap_top - stz _~_mem_start + XREF ~~_heap_top + XREF ~~_mem_start + stz ~~_heap_top + stz ~~_mem_start - XREF _~preInit - jsr >_~preInit + XREF ~~preInit + jsr >~~preInit sep #$30 ; X,Y,A are 8 bit numbers LONGA OFF @@ -127,19 +127,19 @@ START: longa on longi on - jsr >_~main + jsr >~~main brk XDEF IRQ IRQ: - XREF _~IRQHandler + XREF ~~IRQHandler LONGA ON LONGI ON rep #$30 pha phx phy - jsr _~IRQHandler + jsr ~~IRQHandler ply plx pla @@ -147,7 +147,7 @@ IRQ: XDEF NMI NMI: - XREF _~NMIHandler + XREF ~~NMIHandler LONGA ON LONGI ON rep #$30 @@ -164,7 +164,7 @@ NMI: LONGA ON LONGI ON rep #$30 - jsr _~NMIHandler + jsr ~~NMIHandler plb pld ply @@ -183,12 +183,12 @@ ENDS DATA - XDEF _~heap_start - XDEF _~heap_end + XDEF ~~heap_start + XDEF ~~heap_end -_~heap_start: +~~heap_start: WORD $1000 -_~heap_end: +~~heap_end: WORD $1200 ;****************************************************************************** diff --git a/snes/fatfstest/main.c b/snes/fatfstest/main.c index 172d4e0..3bf1d5d 100644 --- a/snes/fatfstest/main.c +++ b/snes/fatfstest/main.c @@ -251,11 +251,11 @@ void main(void) { break; } printfs(1,"%lu BYTES READ", p2); - /* + for (i=0; i