Overview
Paths configuration defines where DevCPC looks for source files, resources, and how to process them. All paths are optional - only configure what your project uses.Assembly Paths
ASM_PATH
Path to the main 8BP assembly file.devcpc.conf
- Type: File path (not directory)
- Required for: 8BP projects
- Points to: The main
make_all_*.asmfile that includes all other ASM files - Process: DevCPC modifies
ASSEMBLING_OPTIONbased onBUILD_LEVELand compiles with ABASM
BASIC Paths
BASIC_PATH
Directory containing BASIC files.devcpc.conf
- Type: Directory path
- Process: All
.basfiles in this directory are automatically added to the DSK - Recursive: No - only scans the specified directory (not subdirectories)
.bas files will be added to the DSK during devcpc build.
Raw Data Paths
RAW_PATH
Directory containing raw binary files (without AMSDOS header).devcpc.conf
- Type: Directory path
- Process: Files are added to the DSK without AMSDOS headers
- Use case: Custom data files, level data, music, etc.
RAW files are added to the DSK “as-is” without any processing or headers.
C Language Paths
C_PATH
Directory containing C source files.devcpc.conf
- Type: Directory path
- Required for: Projects with C code
- Process: Compiled with SDCC during build
- Requires: SDCC must be installed on your system
C_SOURCE
Main C source file to compile.devcpc.conf
- Type: Filename (relative to
C_PATH) - Required for: C compilation
- Example: If file is
C/main.c, setC_SOURCE="main.c"
C_CODE_LOC
Memory address where C code will be loaded.devcpc.conf
- Type: Decimal address
- Required for: C compilation
- Range: Must be less than 23999 to avoid destroying 8BP library
- Default recommendation: 20000 (decimal) = 0x4E20 (hex)
Graphics Paths
SPRITES_PATH
Directory containing PNG sprite files for conversion.devcpc.conf
- Type: Directory path
- Process: All PNG files are converted to ASM format
- Recursive: Yes - searches all subdirectories
- Requires: Pillow Python library (
pip3 install Pillow) - Output: Controlled by
SPRITES_OUT_FILE
SPRITES_OUT_FILE
Output file for converted sprites.devcpc.conf
- Type: File path (can include directory)
- Default:
"sprites.asm"(in project root) - Output: ASM file with all sprite data and palettes
- Usage: Include this file in your main ASM with
include "sprites.asm"
SPRITES_TOLERANCE
RGB color matching tolerance for sprite conversion.devcpc.conf
- Type: Integer
- Values:
0- Exact match only (colors must exactly match CPC palette)8- Recommended (allows small RGB variations)-1- Automatic (always finds closest color)
- Default: 8
SPRITES_TRANSPARENT_INK
INK number for transparent pixels (alpha=0 in PNG).devcpc.conf
- Type: Integer (0-26) or empty string
- Default: Empty (no transparency)
- Example:
SPRITES_TRANSPARENT_INK=0treats transparent pixels as INK 0 (black)
LOADER_SCREEN
Directory containing PNG loading screen files.devcpc.conf
- Type: Directory path
- Process: PNG files converted to SCN format (16KB screen dump)
- Recursive: Yes - searches all subdirectories
- Address: SCN files load at &C000 (video memory)
- Output:
.scnand.scn.infofiles in${OBJ_DIR}/
- Mode 0: 160×200 pixels, max 16 colors
- Mode 1: 320×200 pixels, max 4 colors
- Mode 2: 640×200 pixels, max 2 colors
Path Resolution
All paths are resolved relative to the project root (wheredevcpc.conf is located).
Absolute paths:
Path Validation
Usedevcpc validate to check if all configured paths exist:
Example Configurations
Complete Game Project
devcpc.conf
C + 8BP Project
devcpc.conf
Assembly-Only Project
devcpc.conf
Tips
See Also
- Build Options - Compilation settings
- Graphics Configuration - PNG conversion details
- Project Settings - Output directories