move testcode/disasm into samples/ instead

This commit is contained in:
mrdudz
2020-09-29 19:06:05 +02:00
parent b549e83fb2
commit bbece736f5
6 changed files with 0 additions and 0 deletions

View File

@@ -1,2 +0,0 @@
*.s
image.bin

View File

@@ -1,59 +0,0 @@
# Sample makefile using a preprocessor against info files
# and the --sync-lines option
# Just the usual way to find out if we're
# using cmd.exe to execute make rules.
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
NULLDEV = nul:
DEL = -del /f
RMDIR = rmdir /s /q
else
NULLDEV = /dev/null
DEL = $(RM)
RMDIR = $(RM) -r
endif
ifdef CC65_HOME
AS = $(CC65_HOME)/bin/ca65
CC = $(CC65_HOME)/bin/cc65
CL = $(CC65_HOME)/bin/cl65
LD = $(CC65_HOME)/bin/ld65
DA = $(CC65_HOME)/bin/da65
else
AS := $(if $(wildcard ../../../bin/ca65*),../../../bin/ca65,ca65)
CC := $(if $(wildcard ../../../bin/cc65*),../../../bin/cc65,cc65)
CL := $(if $(wildcard ../../../bin/cl65*),../../../bin/cl65,cl65)
LD := $(if $(wildcard ../../../bin/ld65*),../../../bin/ld65,ld65)
DA := $(if $(wildcard ../../../bin/da65*),../../../bin/da65,da65)
endif
CPP = cpp
#CPPFLAGS = -DTEST_ERROR
ASMS = fixed.s bank0.s bank1.s
DAIS = fixed.dai bank0.dai bank1.dai
.SUFFIXES: .da .dai .s
all: image.bin $(ASMS)
$(DAIS): fixed.da
.da.dai:
$(CPP) -o $@ $(CPPFLAGS) $<
.dai.s:
$(DA) --sync-lines -o $@ -i $< image.bin
image.bin: image.s image.cfg
$(CL) -t none -C image.cfg -o image.bin image.s
clean:
$(RM) $(ASMS)
$(RM) $(DAIS)
$(RM) image.bin

View File

@@ -1,16 +0,0 @@
// Da65 input file before preprocessed by cpp
// Bank0 ROM map
#define TARGET_BANK 0
global {
inputoffs $00010;
inputsize $4000;
startaddr $8000;
cpu "6502";
};
#include "fixed.da"
label { addr $8000; name "Bank0ProcA"; };
label { addr $8123; name "Bank0ProcB"; };
range { start $A000; end $BFFF; name "Bank0Data"; type ByteTable; };

View File

@@ -1,16 +0,0 @@
// Da65 input file before preprocessed by cpp
// Bank1 ROM map
#define TARGET_BANK 1
global {
inputoffs $04010;
inputsize $4000;
startaddr $8000;
cpu "6502";
};
#include "fixed.da"
range { start $8000; end $AFFF; name "Bank1Data"; type ByteTable; };
label { addr $B000; name "Bank1ProcA"; };
label { addr $B123; name "Bank1ProcB"; };

View File

@@ -1,30 +0,0 @@
// Da65 input file before preprocessed by cpp
// RAM and Fixed ROM map
#ifndef FIXED_DA_INCLUDED
#define FIXED_DA_INCLUDED
#ifndef TARGET_BANK
#define TARGET_BANK -1
global {
inputoffs $0C010;
inputsize $4000;
startaddr $C000;
cpu "6502";
};
#endif /* !defined(TARGET_BANK) */
// ---- RAM map ----
label { addr $00; name "VariableA"; };
label { addr $01; name "VariableB"; };
label { addr $0100; name "Stack"; size $0100; };
#if defined(TEST_ERROR) && TARGET_BANK == 0
erroneous_line;
#endif
// ---- Fixed ROM map ----
label { addr $C000; name "CommonProcA"; };
label { addr $C123; name "CommonProcB"; };
range { start $E123; end $FFFF; name "CommonData"; type ByteTable; };
#endif /* !defined(FIXED_DA_INCLUDED) */

View File

@@ -1,15 +0,0 @@
MEMORY {
HEADER: file = %O, start = $0000, size = $0010, fill = yes;
BANK00: file = %O, start = $8000, size = $4000, fill = yes;
BANK01: file = %O, start = $8000, size = $4000, fill = yes;
BANK02: file = %O, start = $8000, size = $4000, fill = yes;
FIXED: file = %O, start = $c000, size = $4000, fill = yes;
}
SEGMENTS {
HDR: load = HEADER, type = rw, optional = yes, define = yes;
BANK0: load = BANK00, type = rw, optional = yes, define = yes;
BANK1: load = BANK01, type = rw, optional = yes, define = yes;
BANK2: load = BANK02, type = rw, optional = yes, define = yes;
FIX: load = FIXED, type = rw, optional = yes, define = yes;
}